Documentation
¶
Overview ¶
Package validate holds the reader-health invariants behind `agni validate` (WS6-007). They are structural sanity checks over what a reader produced. They catch "parsed but empty" and "placements that resolve to nothing" regressions that per-fixture unit tests miss on real files. Design-rule checking is core/check. These are pure functions over parsed structures, and file I/O and format dispatch are left to the CLI (CONSTRAINTS C1).
Index ¶
Constants ¶
const MinResolutionRate = 0.99
MinResolutionRate is the fraction of placements that must resolve to a symbol definition for a geometry to pass. Real exports resolve essentially everything, so a lower rate signals a reader regression (it caught the EDIF id-normalization bug). It is not 1.0 because real libraries occasionally carry a definition-less decorative instance.
Variables ¶
This section is empty.
Functions ¶
func Design ¶
Design returns the netlist-tier problems with a parsed design, empty when it passes. The usual silent reader regression is a design that parsed but has no components or no nets.
func Geometry ¶
func Geometry(g *geom.SchematicGeometry) []string
Geometry returns the drawing-tier problems with a parsed schematic geometry, empty when it passes. Beyond non-empty structure, placements must join to symbol definitions at MinResolutionRate.
func Resolved ¶
func Resolved(g *geom.SchematicGeometry) int
Resolved counts the placements that will actually DRAW, through the renderers' own join (geomath.IndexSymbols, including its cell-only fallback), so "does it draw" has one answer (agni issue 354).
Types ¶
This section is empty.