DIPH5 comparison

enum class snt::dip::ComparisonScope

Values:

enumerator Effective
enumerator Full
enum class snt::dip::DifferenceKind

Values:

enumerator Added
enumerator Removed
enumerator Changed
ComparisonResult snt::dip::compare(const Environment &before, const Environment &after, const ComparisonOptions &options = {})

Compare loaded evaluated environments without modifying them.

ComparisonResult snt::dip::compare_diph5(const std::filesystem::path &before, const std::filesystem::path &after, const ComparisonOptions &options = {})

Load and compare two DIPH5 snapshots.

std::string snt::dip::render_comparison(const ComparisonResult &result, std::size_t max_details = 50)

Render a bounded plain-text summary, shared by the language interfaces.

class Comparison

An owned comparison that can be inspected and rendered repeatedly. File construction loads and compares both DIPH5 snapshots once.

struct ComparisonOptions
struct ComparisonResult

Public Members

std::vector<Difference> differences

Sorted by category and path.

struct Difference

One changed value or, in full scope, one changed manifest entry.

Public Members

std::string category

value, source, trace, or schema.

std::vector<std::size_t> example_indices

Flat, zero-based array indices.