MCPcopy Create free account
hub / github.com/github/gh-aw / TestSpec_PublicAPI_ResolveIssue_NoLabelsUnlinked

Function TestSpec_PublicAPI_ResolveIssue_NoLabelsUnlinked

pkg/intent/spec_test.go:196–205  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

194// no labels produces an unlinked record.
195// Spec: "No supported sources — returns an AttributionUnlinked record."
196func 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}

Callers

nothing calls this directly

Calls 1

ResolveIssueMethod · 0.95

Tested by

no test coverage detected