(property properties.ConfigurableProperty)
| 68 | } |
| 69 | |
| 70 | func getPropertyOrDefault(property properties.ConfigurableProperty) interface{} { |
| 71 | value := getPropertyWithNameOrDefaultIfInvalid(property, property.Name) |
| 72 | if value != nil { |
| 73 | return value |
| 74 | } |
| 75 | return property.DefaultValue |
| 76 | } |
| 77 | |
| 78 | func getPropertyWithNameOrDefaultIfInvalid(property properties.ConfigurableProperty, name string) interface{} { |
| 79 | propertyValue, err := getPropertyWithName(name, property.Parser) |
no test coverage detected