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

Function TestProjectHint

apps/cli/internal/cli/importcmd_test.go:710–729  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

708}
709
710func TestProjectHint(t *testing.T) {
711 tests := []struct {
712 source string
713 expected string
714 }{
715 {"github", "GitHub repository (e.g. owner/repo)"},
716 {"jira", "Jira project key (e.g. PROJ)"},
717 {"unknown", "Project identifier"},
718 {"", "Project identifier"},
719 }
720
721 for _, tt := range tests {
722 t.Run(tt.source, func(t *testing.T) {
723 got := projectHint(tt.source)
724 if got != tt.expected {
725 t.Errorf("projectHint(%q) = %q, want %q", tt.source, got, tt.expected)
726 }
727 })
728 }
729}
730
731func capturePrintImportTable(t *testing.T, result *sync.ImportResult, summary importSummary, quietMode bool) string {
732 t.Helper()

Callers

nothing calls this directly

Calls 1

projectHintFunction · 0.85

Tested by

no test coverage detected