(t *testing.T)
| 285 | } |
| 286 | |
| 287 | func 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 | } |
nothing calls this directly
no test coverage detected