/usr/share/gocode/src/github.com/smartystreets/goconvey/web/server/contract/contracts.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 45 46 47 48 49 50 51 52 53 54 55 56 | package contract
import (
"net/http"
"os"
"path/filepath"
)
type (
Server interface {
ReceiveUpdate(*CompleteOutput)
Watch(writer http.ResponseWriter, request *http.Request)
Ignore(writer http.ResponseWriter, request *http.Request)
Reinstate(writer http.ResponseWriter, request *http.Request)
Status(writer http.ResponseWriter, request *http.Request)
LongPollStatus(writer http.ResponseWriter, request *http.Request)
Results(writer http.ResponseWriter, request *http.Request)
Execute(writer http.ResponseWriter, request *http.Request)
}
Executor interface {
ExecuteTests([]*Package) *CompleteOutput
Status() string
}
Scanner interface {
Scan() (changed bool)
}
Watcher interface {
Root() string
Adjust(root string) error
Deletion(folder string)
Creation(folder string)
Ignore(folder string)
Reinstate(folder string)
WatchedFolders() []*Package
IsWatched(folder string) bool
IsIgnored(folder string) bool
}
FileSystem interface {
Walk(root string, step filepath.WalkFunc)
Listing(directory string) ([]os.FileInfo, error)
Exists(directory string) bool
}
Shell interface {
GoTest(directory string) (output string, err error)
Getenv(key string) string
Setenv(key, value string) error
}
)
|