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

Method CompareBytes

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

CompareBytes is like Compare but works with byte slices (legacy API)

(actual []byte, golden string)

Source from the content-addressed store, hash-verified

132
133// CompareBytes is like Compare but works with byte slices (legacy API)
134func (g *GoldenFile) CompareBytes(actual []byte, golden string) {
135 g.t.Helper()
136 g.Content(actual).Path(golden).CompareContent()
137}
138
139// prepareContent applies transformations based on content type and options
140func (g *GoldenFile) prepareContent() []byte {

Callers

nothing calls this directly

Calls 3

ContentMethod · 0.95
CompareContentMethod · 0.80
PathMethod · 0.80

Tested by

no test coverage detected