validate

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package validate holds the reader-health invariants behind `agni validate` (WS6-007), which 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 stay in the CLI (CONSTRAINTS C1).

Index

Constants

View Source
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

func Design(d *ir.Design) []string

Design returns the netlist-tier problems with a parsed design, empty when it passes. A design that parsed but carries no components or no nets is the usual silent reader regression.

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.

Jump to

Keyboard shortcuts

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