MCPcopy Index your code
hub / github.com/go-task/task / WithExperiment

Function WithExperiment

task_test.go:203–205  ·  view source on GitHub ↗

WithExperiment sets an experiment to be enabled for the test. This can be called multiple times to enable more than one experiment.

(experiment *experiments.Experiment, value int)

Source from the content-addressed store, hash-verified

201// WithExperiment sets an experiment to be enabled for the test. This can be
202// called multiple times to enable more than one experiment.
203func WithExperiment(experiment *experiments.Experiment, value int) TestOption {
204 return &experimentTestOption{experiment: experiment, value: value}
205}
206
207type experimentTestOption struct {
208 experiment *experiments.Experiment

Callers 1

TestEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…