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

Function assertNoErr

cobra_test.go:27–31  ·  view source on GitHub ↗
(t *testing.T, e error)

Source from the content-addressed store, hash-verified

25)
26
27func assertNoErr(t *testing.T, e error) {
28 if e != nil {
29 t.Error(e)
30 }
31}
32
33func TestAddTemplateFunctions(t *testing.T) {
34 AddTemplateFunc("t", func() bool { return true })

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected