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

Function TestMapExternalTask_StatusFallback

apps/cli/internal/sync/mapper_test.go:30–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestMapExternalTask_StatusFallback(t *testing.T) {
31 fm := FieldMap{
32 Status: map[string]string{
33 "open": "pending",
34 },
35 }
36
37 ext := ExternalTask{Title: "Test", Status: "unknown"}
38 mapped := MapExternalTask(ext, fm)
39
40 if mapped.Status != "pending" {
41 t.Errorf("expected fallback status=pending, got %q", mapped.Status)
42 }
43}
44
45func TestMapExternalTask_PriorityMapping(t *testing.T) {
46 fm := FieldMap{

Callers

nothing calls this directly

Calls 1

MapExternalTaskFunction · 0.85

Tested by

no test coverage detected