/usr/share/gocode/src/github.com/smartystreets/goconvey/reporting/reporter.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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | package reporting
type Reporter interface {
BeginStory(story *StoryReport)
Enter(scope *ScopeReport)
Report(r *AssertionResult)
Exit()
EndStory()
}
func (self *reporters) BeginStory(story *StoryReport) {
for _, r := range self.collection {
r.BeginStory(story)
}
}
func (self *reporters) Enter(scope *ScopeReport) {
for _, r := range self.collection {
r.Enter(scope)
}
}
func (self *reporters) Report(report *AssertionResult) {
for _, x := range self.collection {
x.Report(report)
}
}
func (self *reporters) Exit() {
for _, r := range self.collection {
r.Exit()
}
}
func (self *reporters) EndStory() {
for _, r := range self.collection {
r.EndStory()
}
}
type reporters struct {
collection []Reporter
}
func NewReporters(collection ...Reporter) *reporters {
self := reporters{collection}
return &self
}
|