MCPcopy Create free account
hub / github.com/tailscale/tailscale / httpStatus

Function httpStatus

feature/taildrop/peerapi_test.go:81–87  ·  view source on GitHub ↗
(wantStatus int)

Source from the content-addressed store, hash-verified

79func checks(vv ...check) []check { return vv }
80
81func httpStatus(wantStatus int) check {
82 return func(t *testing.T, e *peerAPITestEnv) {
83 if res := e.rr.Result(); res.StatusCode != wantStatus {
84 t.Errorf("HTTP response code = %v; want %v", res.Status, wantStatus)
85 }
86 }
87}
88
89func bodyContains(sub string) check {
90 return func(t *testing.T, e *peerAPITestEnv) {

Callers 1

TestHandlePeerAPIFunction · 0.70

Calls 2

ResultMethod · 0.80
ErrorfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…