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

Function TestJournalWriteConflictFlagAndPositional

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

Source from the content-addressed store, hash-verified

128}
129
130func TestJournalWriteConflictFlagAndPositional(t *testing.T) {
131 server := journalServer(t)
132 defer server.Close()
133
134 _, err := runJournalWrite(t, server, "--content", "X", "Y")
135 if err == nil {
136 t.Fatal("expected error for conflicting flag and positional")
137 }
138 if !strings.Contains(err.Error(), "mutually exclusive") {
139 t.Errorf("error = %q, want to contain %q", err.Error(), "mutually exclusive")
140 }
141}
142
143func TestJournalWriteTwoPositionalsInvalidDate(t *testing.T) {
144 server := journalServer(t)

Callers

nothing calls this directly

Calls 3

journalServerFunction · 0.85
runJournalWriteFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected