MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestTodoAddConflict

Function TestTodoAddConflict

internal/cmd/todo_test.go:119–130  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

117}
118
119func 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
132func TestTodoAddEmpty(t *testing.T) {
133 server := todoServer(t)

Callers

nothing calls this directly

Calls 3

todoServerFunction · 0.85
runTodoAddFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected