This file is indexed.

/usr/share/gocode/src/github.com/ugorji/go/codec/codecgen_test.go is in golang-github-ugorji-go-codec-dev 0.0~git20151130.0.357a44b-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//+build x,codecgen

package codec

import (
	"fmt"
	"testing"
)

func _TestCodecgenJson1(t *testing.T) {
	// This is just a simplistic test for codecgen.
	// It is typically disabled. We only enable it for debugging purposes.
	const callCodecgenDirect bool = true
	v := newTestStruc(2, false, !testSkipIntf, false)
	var bs []byte
	e := NewEncoderBytes(&bs, testJsonH)
	if callCodecgenDirect {
		v.CodecEncodeSelf(e)
		e.w.atEndOfEncode()
	} else {
		e.MustEncode(v)
	}
	fmt.Printf("%s\n", bs)
}