theStandardOutputShouldMatchBaseline reads the expected text from a file instead of directly from the feature file
(ctx context.Context, fileName string)
| 571 | // theStandardOutputShouldMatchBaseline reads the expected text from a file instead of directly |
| 572 | // from the feature file |
| 573 | func theStandardOutputShouldMatchBaseline(ctx context.Context, fileName string) error { |
| 574 | b, err := os.ReadFile(path.Join("acceptance", fileName)) |
| 575 | if err != nil { |
| 576 | return err |
| 577 | } |
| 578 | |
| 579 | docString := godog.DocString{Content: string(b)} |
| 580 | return theStandardOutputShouldContain(ctx, &docString) |
| 581 | } |
| 582 | |
| 583 | func filterMatchedByRegexp(obj any, diff gojsondiff.Diff) diffy { |
| 584 | deltas := diff.Deltas() |
nothing calls this directly
no test coverage detected