MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / IsValid

Method IsValid

internal/plugins/plugin.go:158–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156}
157
158func (o *Setting) IsValid() bool {
159 if o.Type == SettingTypeBool {
160 _, err := ParseBool(o.Value)
161 return (err == nil) || !o.Required
162 }
163 return o.IsDefined() || !o.Required
164}
165
166func (o *Setting) Print() {
167 if o.Type == SettingTypeBool {

Callers 3

TestSetting_IsValidFunction · 0.95
IsValidErrMethod · 0.95
IsConfiguredMethod · 0.80

Calls 2

IsDefinedMethod · 0.95
ParseBoolFunction · 0.85

Tested by 1

TestSetting_IsValidFunction · 0.76