/usr/share/gocode/src/github.com/smartystreets/goconvey/reporting/scope_report.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 | package reporting
import (
"fmt"
"github.com/smartystreets/goconvey/gotest"
)
type ScopeReport struct {
Title string
ID string
File string
Line int
}
func NewScopeReport(title, name string) *ScopeReport {
file, line, _ := gotest.ResolveExternalCaller()
self := &ScopeReport{}
self.Title = title
self.ID = fmt.Sprintf("%s|%s", title, name)
self.File = file
self.Line = line
return self
}
|