Skip to main content

Module assert

Module assert 

Source
Expand description

Per-probe sanity assertions: meta.regularMarketPrice > 0.

Population says a field exists; an assertion says its value is sane. The language is one comparison per line — path op literal — because anything richer belongs in a real test, not a probes manifest:

meta.regularMarketPrice > 0
candles#len >= 1
candles[].close > 0
meta.currency == "USD"
symbol exists

[] descends into every array element and the assertion must hold for each; #len compares an array or string length. Missing or null values fail comparisons (an absent price is not > 0) but != against a literal still holds.

Structs§

Assertion
One parsed assertion, kept with its source line for reporting.