(t *testing.T)
| 117 | } |
| 118 | |
| 119 | func TestTodoAddConflict(t *testing.T) { |
| 120 | server := todoServer(t) |
| 121 | defer server.Close() |
| 122 | |
| 123 | _, err := runTodoAdd(t, server, "--title", "X", "Y") |
| 124 | if err == nil { |
| 125 | t.Fatal("expected error for conflicting flag and positional") |
| 126 | } |
| 127 | if !strings.Contains(err.Error(), "mutually exclusive") { |
| 128 | t.Errorf("error = %q, want to contain %q", err.Error(), "mutually exclusive") |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | func TestTodoAddEmpty(t *testing.T) { |
| 133 | server := todoServer(t) |
nothing calls this directly
no test coverage detected