MCPcopy Create free account
hub / github.com/driangle/taskmd / TestNextID_UnsupportedFormat

Function TestNextID_UnsupportedFormat

apps/cli/internal/cli/nextid_test.go:216–229  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

214}
215
216func TestNextID_UnsupportedFormat(t *testing.T) {
217 resetNextIDFlags()
218 nextIDFormat = "yaml"
219
220 tmpDir := t.TempDir()
221
222 err := runNextID(nextIDCmd, []string{tmpDir})
223 if err == nil {
224 t.Fatal("expected error for unsupported format, got nil")
225 }
226 if !strings.Contains(err.Error(), "unsupported format") {
227 t.Errorf("expected 'unsupported format' error, got: %v", err)
228 }
229}
230
231func TestNextID_PlainFormat(t *testing.T) {
232 resetNextIDFlags()

Callers

nothing calls this directly

Calls 3

resetNextIDFlagsFunction · 0.85
runNextIDFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected