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

Function isAliasReference

pkg/workflow/model_alias_validation.go:321–327  ·  view source on GitHub ↗

isAliasReference reports whether base is a bare identifier that refers to another alias key in the alias map (as opposed to a provider-scoped name or glob).

(base string, aliasMap map[string][]string)

Source from the content-addressed store, hash-verified

319// isAliasReference reports whether base is a bare identifier that refers to
320// another alias key in the alias map (as opposed to a provider-scoped name or glob).
321func isAliasReference(base string, aliasMap map[string][]string) bool {
322 if strings.Contains(base, "/") || strings.Contains(base, "*") {
323 return false
324 }
325 _, exists := aliasMap[base]
326 return exists
327}
328
329// ─── Utilities ────────────────────────────────────────────────────────────────
330

Callers 2

dfsMethod · 0.85
TestIsAliasReferenceFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsAliasReferenceFunction · 0.68