CompareBytes is like Compare but works with byte slices (legacy API)
(actual []byte, golden string)
| 132 | |
| 133 | // CompareBytes is like Compare but works with byte slices (legacy API) |
| 134 | func (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 |
| 140 | func (g *GoldenFile) prepareContent() []byte { |
nothing calls this directly
no test coverage detected