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

Function TestGet_UnsupportedFormat

apps/cli/internal/cli/get_test.go:293–306  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

291}
292
293func TestGet_UnsupportedFormat(t *testing.T) {
294 tmpDir := createGetTestFiles(t)
295 resetGetFlags()
296 taskDir = tmpDir
297 getFormat = "csv"
298
299 err := runGet(getCmd, []string{"001"})
300 if err == nil {
301 t.Fatal("Expected error for unsupported format")
302 }
303 if !strings.Contains(err.Error(), "unsupported format") {
304 t.Errorf("Expected 'unsupported format' error, got: %v", err)
305 }
306}
307
308func TestGet_FuzzyMatch_Substring(t *testing.T) {
309 tmpDir := createGetTestFiles(t)

Callers

nothing calls this directly

Calls 4

createGetTestFilesFunction · 0.85
resetGetFlagsFunction · 0.85
runGetFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected