/usr/share/gocode/src/github.com/bugsnag/bugsnag-go/appengine_test.go is in golang-github-bugsnag-bugsnag-go-dev 1.0.5+dfsg-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 | // +build appengine
package bugsnag
import (
"appengine/aetest"
)
func init() {
c, err := aetest.NewContext(nil)
if err != nil {
panic(err)
}
OnBeforeNotify(func(event *Event, config *Configuration) error {
event.RawData = append(event.RawData, c)
return nil
})
}
|