MCPcopy Create free account
hub / github.com/github/gh-aw / TestChecksCommand_RequiresArg

Function TestChecksCommand_RequiresArg

pkg/cli/checks_command_test.go:226–230  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

224}
225
226func TestChecksCommand_RequiresArg(t *testing.T) {
227 cmd := NewChecksCommand()
228 err := cmd.Args(cmd, []string{})
229 assert.Error(t, err, "checks command should require exactly one argument")
230}
231
232func TestChecksCommand_AcceptsOneArg(t *testing.T) {
233 cmd := NewChecksCommand()

Callers

nothing calls this directly

Calls 2

NewChecksCommandFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected