MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestCmdAddUnknownSubcommand

Function TestCmdAddUnknownSubcommand

internal/app/add_test.go:251–259  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

249}
250
251func TestCmdAddUnknownSubcommand(t *testing.T) {
252 setupFlowRoot(t)
253 if rc := cmdAdd([]string{"bogus"}); rc != 2 {
254 t.Errorf("rc=%d, want 2", rc)
255 }
256 if rc := cmdAdd(nil); rc != 2 {
257 t.Errorf("rc=%d, want 2", rc)
258 }
259}
260
261func TestCmdAddTaskWithDueDate(t *testing.T) {
262 setupFlowRoot(t)

Callers

nothing calls this directly

Calls 2

setupFlowRootFunction · 0.85
cmdAddFunction · 0.85

Tested by

no test coverage detected