forked from smartystreets/goconvey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contracts.go
27 lines (23 loc) · 841 Bytes
/
contracts.go
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 contract
import "net/http"
type (
Server interface {
ReceiveUpdate(root string, update *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)
TogglePause(writer http.ResponseWriter, request *http.Request)
}
Executor interface {
ExecuteTests([]*Package) *CompleteOutput
Status() string
ClearStatusFlag() bool
}
Shell interface {
GoTest(directory, packageName string, arguments []string) (output string, err error)
}
)