Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + var ErrUnreachable = errors.New("agent unreachable") + func Completed(host string, data string) *job.Response + func Failed(host string, msg string) *job.Response + func NotFound(host string) error + func Skipped(host string) *job.Response + func TimedOut(host string) *job.Response + type Case struct + Job *Job + Name string + Request Request + Token Token + WantBody string + WantCode int + type Harness struct + func New(t *testing.T, spec string, routes func(s *server.Server) []server.Route) *Harness + func (h *Harness) Run(t *testing.T, cases []Case) + type Job struct + func Modify(target string, op string, input any, replies ...*job.Response) *Job + func Query(target string, op string, input any, replies ...*job.Response) *Job + func (j *Job) Fails(err error) *Job + type Request struct + Body string + Method string + Path string + type Token int + const Admin + const Lacking + const NoToken + const Read + const Write