MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / RequireSuccess

Function RequireSuccess

test/testutil/testutil.go:31–41  ·  view source on GitHub ↗
(t *testing.T, err error, args ...any)

Source from the content-addressed store, hash-verified

29}
30
31func RequireSuccess(t *testing.T, err error, args ...any) bool {
32 if err != nil {
33 for _, arg := range args {
34 t.Log(arg)
35 }
36 debug.PrintStack()
37 t.Fatal(err.Error())
38 return false
39 }
40 return true
41}
42
43type RoundTripper func(r *http.Request) (*http.Response, error)
44

Calls 1

ErrorMethod · 0.45