MCPcopy Create free account
hub / github.com/conforma/cli / theStandardOutputShouldMatchBaseline

Function theStandardOutputShouldMatchBaseline

acceptance/cli/cli.go:573–581  ·  view source on GitHub ↗

theStandardOutputShouldMatchBaseline reads the expected text from a file instead of directly from the feature file

(ctx context.Context, fileName string)

Source from the content-addressed store, hash-verified

571// theStandardOutputShouldMatchBaseline reads the expected text from a file instead of directly
572// from the feature file
573func 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
583func filterMatchedByRegexp(obj any, diff gojsondiff.Diff) diffy {
584 deltas := diff.Deltas()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected