(ctx context.Context)
| 775 | } |
| 776 | |
| 777 | func matchSnapshot(ctx context.Context) error { |
| 778 | status, err := ecStatusFrom(ctx) |
| 779 | if err != nil { |
| 780 | return err |
| 781 | } |
| 782 | |
| 783 | stdout := snaps.MatchSnapshot(ctx, "stdout", status.stdout.String(), status.vars) |
| 784 | stderr := snaps.MatchSnapshot(ctx, "stderr", status.stderr.String(), status.vars) |
| 785 | |
| 786 | if stdout == nil && stderr == nil { |
| 787 | return nil |
| 788 | } |
| 789 | |
| 790 | return errors.Join(stdout, stderr) |
| 791 | } |
| 792 | |
| 793 | func matchFileSnapshot(ctx context.Context, file string) error { |
| 794 | status, err := ecStatusFrom(ctx) |
nothing calls this directly
no test coverage detected