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

Function TestSeenInvalidID

internal/cmd/seen_test.go:134–142  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

132}
133
134func TestSeenInvalidID(t *testing.T) {
135 server := seenServer(t)
136 defer server.Close()
137
138 _, err := runSeen(t, server, "abc")
139 if err == nil {
140 t.Fatal("expected error for non-numeric ID")
141 }
142 if err.Error() != "invalid ID: abc" {
143 t.Errorf("error = %q, want %q", err, "invalid ID: abc")
144 }
145}

Callers

nothing calls this directly

Calls 2

seenServerFunction · 0.85
runSeenFunction · 0.85

Tested by

no test coverage detected