Compare compares the actual content with the golden file content (legacy API) Deprecated: Use StringContent().Path().CompareContent() for the fluent API
(actual string, golden string)
| 126 | // |
| 127 | // Deprecated: Use StringContent().Path().CompareContent() for the fluent API |
| 128 | func (g *GoldenFile) Compare(actual string, golden string) { |
| 129 | g.t.Helper() |
| 130 | g.StringContent(actual).Path(golden).CompareContent() |
| 131 | } |
| 132 | |
| 133 | // CompareBytes is like Compare but works with byte slices (legacy API) |
| 134 | func (g *GoldenFile) CompareBytes(actual []byte, golden string) { |