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

Function TestResolverResolveIssueMapped

pkg/intent/resolver_test.go:104–118  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

102}
103
104func 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}

Callers

nothing calls this directly

Calls 1

ResolveIssueMethod · 0.95

Tested by

no test coverage detected