MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / getBoolProperty

Function getBoolProperty

configuration/configuration.go:61–68  ·  view source on GitHub ↗
(property properties.ConfigurableProperty)

Source from the content-addressed store, hash-verified

59}
60
61func 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
70func getPropertyOrDefault(property properties.ConfigurableProperty) interface{} {
71 value := getPropertyWithNameOrDefaultIfInvalid(property, property.Name)

Callers 2

Calls 1

getPropertyOrDefaultFunction · 0.85

Tested by

no test coverage detected