()
| 10 | ) |
| 11 | |
| 12 | func resetAddFlags() { |
| 13 | addPriority = "medium" |
| 14 | addEffort = "" |
| 15 | addTags = "" |
| 16 | addStatus = "pending" |
| 17 | addOwner = "" |
| 18 | addDependsOn = "" |
| 19 | addParent = "" |
| 20 | addGroup = "" |
| 21 | addFormat = "plain" |
| 22 | addEdit = false |
| 23 | addTemplate = "" |
| 24 | addSlug = "" |
| 25 | addPhase = "" |
| 26 | taskDir = "." |
| 27 | |
| 28 | // Reset cobra flag "changed" state for template override tests |
| 29 | for _, name := range []string{"priority", "status", "effort", "tags", "owner", "depends-on", "parent", "phase"} { |
| 30 | if f := addCmd.Flags().Lookup(name); f != nil { |
| 31 | f.Changed = false |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func captureAddOutput(t *testing.T, title string) (string, error) { |
| 37 | t.Helper() |
no outgoing calls
no test coverage detected