MCPcopy Create free account
hub / github.com/anchordotdev/cli / TestError

Function TestError

cmdtest/cmdtest.go:41–46  ·  view source on GitHub ↗
(t *testing.T, cmd *cobra.Command, args ...string)

Source from the content-addressed store, hash-verified

39}
40
41func TestError(t *testing.T, cmd *cobra.Command, args ...string) error {
42 _, err := executeSkip(cmd, args...)
43 require.Error(t, err)
44
45 return err
46}
47
48func TestHelp(t *testing.T, cmd *cobra.Command, args ...string) {
49 root := cmd.Root()

Callers 3

TestCmdTrustFunction · 0.92
TestCmdTrustAuditFunction · 0.92
TestCmdTrustCleanFunction · 0.92

Calls 2

executeSkipFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected