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

Function TestCmdAddTaskWithoutDueDate

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

Source from the content-addressed store, hash-verified

285}
286
287func TestCmdAddTaskWithoutDueDate(t *testing.T) {
288 setupFlowRoot(t)
289 if rc := cmdAdd([]string{"task", "No Due"}); rc != 0 {
290 t.Fatalf("rc=%d", rc)
291 }
292 db := openFlowDB(t)
293 task, err := flowdb.GetTask(db, "no-due")
294 if err != nil {
295 t.Fatal(err)
296 }
297 if task.DueDate.Valid {
298 t.Errorf("expected NULL due_date, got %+v", task.DueDate)
299 }
300}

Callers

nothing calls this directly

Calls 4

GetTaskFunction · 0.92
setupFlowRootFunction · 0.85
cmdAddFunction · 0.85
openFlowDBFunction · 0.85

Tested by

no test coverage detected