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

Function TestIsAliasReference

pkg/workflow/model_alias_validation_test.go:519–526  ·  view source on GitHub ↗

isAliasReference helper tests.

(t *testing.T)

Source from the content-addressed store, hash-verified

517
518// isAliasReference helper tests.
519func TestIsAliasReference(t *testing.T) {
520 aliasMap := map[string][]string{"sonnet": {"copilot/*sonnet*"}}
521
522 assert.True(t, isAliasReference("sonnet", aliasMap), "bare alias key should be detected as alias reference")
523 assert.False(t, isAliasReference("copilot/model", aliasMap), "provider-scoped entry should not be alias reference")
524 assert.False(t, isAliasReference("copilot/*sonnet*", aliasMap), "glob entry should not be alias reference")
525 assert.False(t, isAliasReference("unknown", aliasMap), "unknown bare name is not an alias reference")
526}
527
528// ─── Expression skip tests for validateModelIdentifierStrings ─────────────────
529

Callers

nothing calls this directly

Calls 1

isAliasReferenceFunction · 0.85

Tested by

no test coverage detected