Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/go-task/task
/ Active
Method
Active
experiments/experiment.go:42–44 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
40
}
41
42
func
(x Experiment) Active() bool {
43
return
len(x.AllowedValues) > 0
44
}
45
46
func
(x Experiment) Valid() error {
47
if
!x.Active() && x.Value != 0 {
Callers
3
Valid
Method · 0.95
TestNew
Function · 0.80
PrintExperiments
Method · 0.80
Calls
no outgoing calls
Tested by
1
TestNew
Function · 0.64