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

Function TestCmdUpdateTaskRequiresFlag

internal/app/update_test.go:164–171  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

162}
163
164func TestCmdUpdateTaskRequiresFlag(t *testing.T) {
165 setupFlowRoot(t)
166 seedTask(t, "ut-noop")
167
168 if rc := cmdUpdate([]string{"task", "ut-noop"}); rc != 2 {
169 t.Errorf("rc=%d, want 2 when no field-changing flag is given", rc)
170 }
171}
172
173func TestCmdUpdateTaskUnknownTask(t *testing.T) {
174 setupFlowRoot(t)

Callers

nothing calls this directly

Calls 3

setupFlowRootFunction · 0.85
seedTaskFunction · 0.85
cmdUpdateFunction · 0.85

Tested by

no test coverage detected