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

Function TestGet_FilePathMatch_FullRelativePath

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

Source from the content-addressed store, hash-verified

535}
536
537func TestGet_FilePathMatch_FullRelativePath(t *testing.T) {
538 tmpDir := createGetTestFilesWithSubdirs(t)
539 resetGetFlags()
540 taskDir = tmpDir
541
542 output := captureGetOutput(t, "cli/042-task.md")
543
544 if !strings.Contains(output, "Task: cli-042") {
545 t.Error("Expected full relative path to match task cli-042")
546 }
547}
548
549func TestGet_FilePathMatch_FilenameWithExtension(t *testing.T) {
550 tmpDir := createGetTestFilesWithSubdirs(t)

Callers

nothing calls this directly

Calls 4

resetGetFlagsFunction · 0.85
captureGetOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected