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

Function WithVar

task_test.go:166–168  ·  view source on GitHub ↗

WithVar sets a variable to be passed to the task. This can be called multiple times to set more than one variable.

(key string, value any)

Source from the content-addressed store, hash-verified

164// WithVar sets a variable to be passed to the task. This can be called multiple
165// times to set more than one variable.
166func WithVar(key string, value any) TestOption {
167 return &varTestOption{key: key, value: value}
168}
169
170type varTestOption struct {
171 key string

Callers 3

TestVarsFunction · 0.85
TestRequiresFunction · 0.85
TestIfFunction · 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…