isAliasReference helper tests.
(t *testing.T)
| 517 | |
| 518 | // isAliasReference helper tests. |
| 519 | func 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 |
nothing calls this directly
no test coverage detected