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

Function TestCmdUpdateTaskPriority

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

Source from the content-addressed store, hash-verified

275}
276
277func TestCmdUpdateTaskPriority(t *testing.T) {
278 setupFlowRoot(t)
279 seedTask(t, "ut-prio")
280
281 if rc := cmdUpdate([]string{"task", "ut-prio", "--priority", "high"}); rc != 0 {
282 t.Fatalf("rc=%d", rc)
283 }
284 db := openFlowDB(t)
285 task, _ := flowdb.GetTask(db, "ut-prio")
286 if task.Priority != "high" {
287 t.Errorf("priority = %q, want high", task.Priority)
288 }
289}
290
291func TestCmdUpdateTaskPriorityInvalid(t *testing.T) {
292 setupFlowRoot(t)

Callers

nothing calls this directly

Calls 5

GetTaskFunction · 0.92
setupFlowRootFunction · 0.85
seedTaskFunction · 0.85
cmdUpdateFunction · 0.85
openFlowDBFunction · 0.85

Tested by

no test coverage detected