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)
| 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. |
| 277 | func WithFixtureTemplateData(key string, value any) TestOption { |
| 278 | return &fixtureTemplateDataTestOption{key, value} |
| 279 | } |
| 280 | |
| 281 | type fixtureTemplateDataTestOption struct { |
| 282 | k string |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…