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

Function WithName

task_test.go:130–132  ·  view source on GitHub ↗

Functional options WithName gives the test fixture output a name. This should be used when running multiple tests in a single test function.

(name string)

Source from the content-addressed store, hash-verified

128// WithName gives the test fixture output a name. This should be used when
129// running multiple tests in a single test function.
130func WithName(name string) TestOption {
131 return &nameTestOption{name: name}
132}
133
134type nameTestOption struct {
135 name string

Callers 15

TestEnvFunction · 0.85
TestVarsFunction · 0.85
TestSecretVarsFunction · 0.85
TestRequiresFunction · 0.85
TestSpecialVarsFunction · 0.85
TestStatusFunction · 0.85
TestPreconditionFunction · 0.85
TestAliasFunction · 0.85
TestLabelFunction · 0.85
TestPrefixFunction · 0.85
TestPromptInSummaryFunction · 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…