This file is indexed.

/usr/share/gocode/src/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/fmt_test.go is in golang-github-fsouza-go-dockerclient-dev 0.0+git20150905-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
package ioutils

import "testing"

func TestFprintfIfNotEmpty(t *testing.T) {
	wc := NewWriteCounter(&NopWriter{})
	n, _ := FprintfIfNotEmpty(wc, "foo%s", "")

	if wc.Count != 0 || n != 0 {
		t.Errorf("Wrong count: %v vs. %v vs. 0", wc.Count, n)
	}

	n, _ = FprintfIfNotEmpty(wc, "foo%s", "bar")
	if wc.Count != 6 || n != 6 {
		t.Errorf("Wrong count: %v vs. %v vs. 6", wc.Count, n)
	}
}