(t *testing.T)
| 102 | } |
| 103 | |
| 104 | func TestResolverResolveIssueMapped(t *testing.T) { |
| 105 | resolver := Resolver{ |
| 106 | MatchLabels: func(labels []string) []string { |
| 107 | return []string{"documentation"} |
| 108 | }, |
| 109 | } |
| 110 | |
| 111 | intent := resolver.ResolveIssue("I_kwDOAAABCQ4", "https://github.com/owner/repo/issues/42", []string{"documentation"}) |
| 112 | |
| 113 | assert.Equal(t, AttributionMapped, intent.Status) |
| 114 | assert.Equal(t, SourceIssueLabels, intent.Source) |
| 115 | assert.Equal(t, "issue_label_fallback", intent.Rule) |
| 116 | assert.Equal(t, "issue", intent.RootType) |
| 117 | assert.Equal(t, []string{"documentation"}, intent.Labels) |
| 118 | } |
nothing calls this directly
no test coverage detected