MCPcopy Create free account
hub / github.com/go-task/task / WithFixtureTemplateData

Function WithFixtureTemplateData

task_test.go:277–279  ·  view source on GitHub ↗

WithFixtureTemplateData adds data to the golden fixture file templates. Keys given here will override any existing values. This option will also enable global templating, so you do not need to call WithFixtureTemplating as well.

(key string, value any)

Source from the content-addressed store, hash-verified

275// given here will override any existing values. This option will also enable
276// global templating, so you do not need to call WithFixtureTemplating as well.
277func WithFixtureTemplateData(key string, value any) TestOption {
278 return &fixtureTemplateDataTestOption{key, value}
279}
280
281type fixtureTemplateDataTestOption struct {
282 k string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…