MCPcopy
hub / github.com/spf13/cobra / assertNoErr

Function assertNoErr

doc/man_docs_test.go:29–33  ·  view source on GitHub ↗
(t *testing.T, e error)

Source from the content-addressed store, hash-verified

27)
28
29func assertNoErr(t *testing.T, e error) {
30 if e != nil {
31 t.Error(e)
32 }
33}
34
35func translate(in string) string {
36 return strings.ReplaceAll(in, "-", "\\-")

Callers 1

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected