TestSpec_PublicAPI_ResolveIssue_NoLabelsUnlinked validates that an issue with no labels produces an unlinked record. Spec: "No supported sources — returns an AttributionUnlinked record."
(t *testing.T)
| 194 | // no labels produces an unlinked record. |
| 195 | // Spec: "No supported sources — returns an AttributionUnlinked record." |
| 196 | func TestSpec_PublicAPI_ResolveIssue_NoLabelsUnlinked(t *testing.T) { |
| 197 | resolver := intent.Resolver{} |
| 198 | |
| 199 | record := resolver.ResolveIssue("I_kwDOAAABCQ4", "https://github.com/owner/repo/issues/1", nil) |
| 200 | |
| 201 | assert.Equal(t, intent.AttributionUnlinked, record.Status, |
| 202 | "issue with no labels should produce unlinked status") |
| 203 | assert.Equal(t, "no_supported_intent_source", record.Rule, |
| 204 | "issue with no labels should produce no_supported_intent_source rule") |
| 205 | } |
nothing calls this directly
no test coverage detected