zplCore.comzplCore.com

ZplAssertionFailure

public record ZplAssertionFailure

One failed label assertion: what was expected, what the label prints instead, where (label, element position, ZPL line) and the image files written for it.

Constructors

SignatureDescription
# ZplAssertionFailure()

Properties

PropertyTypeDescription
ApprovedPath { get; init; }stringSnapshot assertions: the approved image the label was compared with.
required Assertion { get; init; }stringThe assertion chain that failed, e.g. Barcode("SSCC").Decodes("(00)…").
Column { get; init; }int1-based ZPL source column (0 when unknown).
Details { get; init; }IReadOnlyList<(string, string)>Details (label, element, source excerpt, measured values), one entry per line.
DiffPath { get; init; }stringSnapshot assertions: overlay of approved and received (black = both, red = only approved, blue = only received).
ImagePath { get; init; }stringThe label rendered with the failing elements outlined (red) and related elements (orange), or null.
LabelIndex { get; init; }int0-based label index (print order), -1 when the failure is not tied to one label.
Line { get; init; }int1-based ZPL source line of the failing element (0 when unknown).
ReceivedPath { get; init; }stringSnapshot assertions: the image the label renders now (written next to the approved one).
required Summary { get; init; }stringOne-line statement of what is wrong.