resetListFlags resets list command flags to defaults before each test.
()
| 94 | |
| 95 | // resetListFlags resets list command flags to defaults before each test. |
| 96 | func resetListFlags() { |
| 97 | listFilters = []string{} |
| 98 | listSort = "" |
| 99 | listColumns = "id,title,status,priority,file" |
| 100 | listLimit = 0 |
| 101 | listScope = "" |
| 102 | listPhase = "" |
| 103 | listStatus = "" |
| 104 | listPriority = "" |
| 105 | noColor = true |
| 106 | } |
| 107 | |
| 108 | // captureListTableOutput runs outputTable and captures stdout. |
| 109 | func captureListTableOutput(t *testing.T, tasks []*model.Task, columns string) string { |
no outgoing calls
no test coverage detected