extractSchemaReferences extracts all coverage references from entity definitions
(definitions []*base.EntityDefinition)
| 100 | |
| 101 | // extractSchemaReferences extracts all coverage references from entity definitions |
| 102 | func extractSchemaReferences(definitions []*base.EntityDefinition) []SchemaCoverage { |
| 103 | refs := make([]SchemaCoverage, len(definitions)) |
| 104 | for idx, entityDef := range definitions { |
| 105 | refs[idx] = extractEntityReferences(entityDef) |
| 106 | } |
| 107 | return refs |
| 108 | } |
| 109 | |
| 110 | // extractEntityReferences extracts relationships, attributes, and assertions from an entity definition |
| 111 | func extractEntityReferences(entity *base.EntityDefinition) SchemaCoverage { |
no test coverage detected