MCPcopy Create free account
hub / github.com/goadesign/goa / SetUpdateMode

Method SetUpdateMode

codegen/testutil/golden.go:243–243  ·  view source on GitHub ↗

SetUpdateMode sets whether this GoldenFile should update golden files on compare.

(update bool)

Source from the content-addressed store, hash-verified

241
242// SetUpdateMode sets whether this GoldenFile should update golden files on compare.
243func (g *GoldenFile) SetUpdateMode(update bool) { g.update = update }
244
245// CompareOrUpdateGolden provides a drop-in replacement for the legacy function
246// used throughout the codebase. New code should use GoldenFile instead.

Callers 1

TestGoldenFileFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestGoldenFileFunction · 0.76