MCPcopy
hub / github.com/go-task/task / Enabled

Method Enabled

experiments/experiment.go:38–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (x Experiment) Enabled() bool {
39 return slices.Contains(x.AllowedValues, x.Value)
40}
41
42func (x Experiment) Active() bool {
43 return len(x.AllowedValues) > 0

Callers 6

ValidMethod · 0.95
StringMethod · 0.95
TestNewFunction · 0.80
initFunction · 0.80
GetFromVarsFunction · 0.80
NewNodeFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestNewFunction · 0.64