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

Function TestJournalWriteShortFlag

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

Source from the content-addressed store, hash-verified

114}
115
116func TestJournalWriteShortFlag(t *testing.T) {
117 server := journalServer(t)
118 defer server.Close()
119
120 resp, err := runJournalWrite(t, server, "-c", "Content via short flag")
121 if err != nil {
122 t.Fatalf("execute: %v", err)
123 }
124
125 if !strings.Contains(resp.Summary, "Journal entry") {
126 t.Errorf("summary = %q, want to contain %q", resp.Summary, "Journal entry")
127 }
128}
129
130func TestJournalWriteConflictFlagAndPositional(t *testing.T) {
131 server := journalServer(t)

Callers

nothing calls this directly

Calls 2

journalServerFunction · 0.85
runJournalWriteFunction · 0.85

Tested by

no test coverage detected