extractAttributes extracts all attribute references from an entity
(entity *base.EntityDefinition)
| 139 | |
| 140 | // extractAttributes extracts all attribute references from an entity |
| 141 | func extractAttributes(entity *base.EntityDefinition) []string { |
| 142 | attributes := []string{} |
| 143 | |
| 144 | for _, attr := range entity.GetAttributes() { |
| 145 | formatted := formatAttribute(entity.GetName(), attr.GetName()) |
| 146 | attributes = append(attributes, formatted) |
| 147 | } |
| 148 | |
| 149 | return attributes |
| 150 | } |
| 151 | |
| 152 | // extractAssertions extracts all permission/assertion references from an entity |
| 153 | func extractAssertions(entity *base.EntityDefinition) []string { |
no test coverage detected