This file is indexed.

/usr/share/gocode/src/github.com/masterzen/winrm/error_test.go is in golang-github-masterzen-winrm-dev 0.0~git20170601.0.1ca0ba6-3.

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

import (
	"errors"

	. "gopkg.in/check.v1"
)

func (s *WinRMSuite) TestError(c *C) {

	err := errWinrm{
		message: "Some test error",
	}
	same := errors.New("Some test error")
	func(err, same error) {
		t, ok := err.(errWinrm)
		c.Assert(ok, Equals, true)
		c.Assert(t.Error(), Equals, same.Error())
	}(err, same)
}