This file is indexed.

/usr/share/gocode/src/github.com/siddontang/rdb/rdb_test.go is in golang-github-siddontang-rdb-dev 0.0~git20150307.0.fc89ed2-5.

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
package rdb

import (
	"reflect"
	"testing"
)

func TestCodec(t *testing.T) {
	testCodec(String("abc"), t)
}

func testCodec(obj interface{}, t *testing.T) {
	b, err := Dump(obj)
	if err != nil {
		t.Fatal(err)
	}

	if o, err := DecodeDump(b); err != nil {
		t.Fatal(err)
	} else if !reflect.DeepEqual(obj, o) {
		t.Fatal("must equal")
	}
}