This file is indexed.

/usr/share/gocode/src/github.com/hashicorp/atlas-go/v1/authentication_test.go is in golang-github-hashicorp-atlas-go-dev 0.0~git20151216.84.b66e377-2.

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
25
26
27
28
29
30
package atlas

import "testing"

func TestMaskString_emptyString(t *testing.T) {
	result := maskString("")
	expected := "*** (masked)"

	if result != expected {
		t.Errorf("expected %s to be %s", result, expected)
	}
}

func TestMaskString_threeString(t *testing.T) {
	result := maskString("123")
	expected := "*** (masked)"

	if result != expected {
		t.Errorf("expected %s to be %s", result, expected)
	}
}

func TestMaskString_longerString(t *testing.T) {
	result := maskString("ABCD1234")
	expected := "ABC*** (masked)"

	if result != expected {
		t.Errorf("expected %s to be %s", result, expected)
	}
}