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

Method IsValid

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

Source from the content-addressed store, hash-verified

179}
180
181func (o *Setting) IsValid() bool {
182 if o.Type == SettingTypeBool {
183 _, err := ParseBool(o.Value)
184 return (err == nil) || !o.Required
185 }
186 return o.IsDefined() || !o.Required
187}
188
189func (o *Setting) Print() {
190 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