Surface resource relationship map

This commit is contained in:
rcourtman
2026-04-29 15:20:36 +01:00
parent 535e623ad0
commit cc470635b9
25 changed files with 800 additions and 124 deletions
@@ -848,6 +848,11 @@ func TestResourceRelationshipModelUsesCanonicalEdgeComment(t *testing.T) {
requiredSnippets := []string{
"// ResourceRelationship represents a typed relationship edge between two unified resources.",
"type ResourceRelationship struct {",
"const parentRelationshipDiscoverer = \"resource_registry\"",
"func ResourceRelationshipsWithCanonicalParent(resource Resource) []ResourceRelationship",
"relationshipType := parentRelationshipType(resource.Type)",
"Metadata: map[string]any{",
"func parentRelationshipType(resourceType ResourceType) RelationshipType",
}
for _, snippet := range requiredSnippets {
if !strings.Contains(source, snippet) {