AssertString provides a simple assertion API for strings
(t testing.TB, goldenPath string, got string)
| 267 | |
| 268 | // AssertString provides a simple assertion API for strings |
| 269 | func AssertString(t testing.TB, goldenPath string, got string) { |
| 270 | t.Helper() |
| 271 | gf := &GoldenFile{t: t, basePath: ""} |
| 272 | gf.StringContent(got).Path(goldenPath).CompareContent() |
| 273 | } |
| 274 | |
| 275 | // AssertJSON compares JSON content with proper formatting |
| 276 | func AssertJSON(t testing.TB, goldenPath string, got []byte) { |