contracts.go 847 B

123456789101112131415161718192021222324252627
  1. package contract
  2. import "net/http"
  3. type (
  4. Server interface {
  5. ReceiveUpdate(root string, update *CompleteOutput)
  6. Watch(writer http.ResponseWriter, request *http.Request)
  7. Ignore(writer http.ResponseWriter, request *http.Request)
  8. Reinstate(writer http.ResponseWriter, request *http.Request)
  9. Status(writer http.ResponseWriter, request *http.Request)
  10. LongPollStatus(writer http.ResponseWriter, request *http.Request)
  11. Results(writer http.ResponseWriter, request *http.Request)
  12. Execute(writer http.ResponseWriter, request *http.Request)
  13. TogglePause(writer http.ResponseWriter, request *http.Request)
  14. }
  15. Executor interface {
  16. ExecuteTests([]*Package) *CompleteOutput
  17. Status() string
  18. ClearStatusFlag() bool
  19. }
  20. Shell interface {
  21. GoTest(directory, packageName string, tags, arguments []string) (output string, err error)
  22. }
  23. )