(property properties.ConfigurableProperty)
| 59 | } |
| 60 | |
| 61 | func getBoolProperty(property properties.ConfigurableProperty) bool { |
| 62 | uncastedValue := getPropertyOrDefault(property) |
| 63 | value, ok := uncastedValue.(bool) |
| 64 | if !ok { |
| 65 | panic(fmt.Sprintf(unknownError, property.Name, uncastedValue)) |
| 66 | } |
| 67 | return value |
| 68 | } |
| 69 | |
| 70 | func getPropertyOrDefault(property properties.ConfigurableProperty) interface{} { |
| 71 | value := getPropertyWithNameOrDefaultIfInvalid(property, property.Name) |
no test coverage detected