MCPcopy
hub / github.com/digitalocean/doctl / TestMockRunner

Function TestMockRunner

util_test.go:23–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21)
22
23func TestMockRunner(t *testing.T) {
24 e := fmt.Errorf("an error")
25 mr := MockRunner{e}
26
27 assert.Equal(t, e, mr.Run())
28}

Callers

nothing calls this directly

Calls 2

RunMethod · 0.95
ErrorfMethod · 0.80

Tested by

no test coverage detected