This file is indexed.

/usr/share/gocode/src/github.com/smartystreets/goconvey/execution/action.go is in golang-github-smartystreets-goconvey-dev 1.5.0-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
25
26
27
package execution

import "github.com/smartystreets/goconvey/gotest"

func (self *Action) Invoke() {
	self.action()
}

type Action struct {
	action func()
	name   string
}

func NewAction(action func()) *Action {
	return &Action{action: action, name: functionName(action)}
}

func NewSkippedAction(action func()) *Action {
	self := &Action{}

	// The choice to use the filename and line number as the action name
	// reflects the need for something unique but also that corresponds
	// in a determinist way to the action itself.
	self.name = gotest.FormatExternalFileAndLine()
	self.action = action
	return self
}