(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func 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 | |
| 45 | func TestMapExternalTask_PriorityMapping(t *testing.T) { |
| 46 | fm := FieldMap{ |
nothing calls this directly
no test coverage detected