(t *testing.T)
| 128 | } |
| 129 | |
| 130 | func 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 | |
| 143 | func TestJournalWriteTwoPositionalsInvalidDate(t *testing.T) { |
| 144 | server := journalServer(t) |
nothing calls this directly
no test coverage detected