diff

package
v0.0.0-...-04e3681 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package diff implements the `gherkinator diff` subcommand: it compares a set of YAML test plans against an on-disk features directory and reports missing, differing, and orphan feature files.

Index

Constants

View Source
const (
	ExitClean     = 0
	ExitDiff      = 1
	ExitPlanError = 2
)

Exit codes returned by Run. They are re-exported so the cmd package can propagate them via os.Exit.

Variables

This section is empty.

Functions

func Run

func Run(inputFiles []string, featuresDir string, opts common.FilterOptions, show bool, out, errOut io.Writer) int

Run compares the rendered plans (built from inputFiles and filtered by opts) against the .feature files in featuresDir, writing any human-readable classifications to errOut and (when show is true) unified diffs for differing pairs to out.

It returns the appropriate exit code: ExitClean on no diffs, ExitDiff when any classification fires, or ExitPlanError when a plan could not be loaded, validated, or rendered.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL