(t *testing.T)
| 634 | t.Errorf("done task should not spawn iTerm: got %d spawns", *spawns) |
| 635 | } |
| 636 | } |
| 637 | |
| 638 | func TestCmdDoFuzzyAmbiguous(t *testing.T) { |
| 639 | setupFlowRoot(t) |
| 640 | seedTask(t, "auth fix") |
| 641 | seedTask(t, "auth refactor") |
| 642 | |
| 643 | spawns, _ := stubITerm(t) |
| 644 | if rc := cmdDo([]string{"auth"}); rc != 1 { |
| 645 | t.Errorf("rc=%d, want 1 for ambiguous ref", rc) |
| 646 | } |
| 647 | if atomic.LoadInt64(spawns) != 0 { |
| 648 | t.Errorf("ambiguous ref should not spawn: %d", *spawns) |
| 649 | } |
| 650 | } |
| 651 | |
| 652 | func TestCmdDoFuzzyExactWins(t *testing.T) { |
| 653 | setupFlowRoot(t) |
nothing calls this directly
no test coverage detected