pub struct CoverageRow {
pub run_id: String,
pub workspace: String,
pub surface_key: String,
pub kind: String,
pub id: String,
pub mode: String,
pub verdict: String,
pub reason: String,
pub ts_micros: i64,
}Expand description
One persisted coverage row — the surface_coverage warehouse fact, mirroring
tests/mcp_tool_coverage.json but for the WHOLE discovered surface. One row
per (surface_key, mode, workspace) with its Verdict.
surface_key is SurfaceNode::key_str ("kind:id@mode") — the stable join
key the gate matched coverage on. kind/id/mode are split out as columns
so the warehouse / viz can filter without re-parsing the key.
Fields§
§run_id: StringThe run that produced this row (groups one gate run’s rows).
workspace: StringThe workspace this surface belongs to (so a multi-workspace warehouse keeps each workspace’s surface distinct).
surface_key: StringSurfaceNode::key_str() — "kind:id@mode". The stable identity.
kind: StringThe enumerator kind tag (facett_component / viz_tab / cli_command /
mcp_tool / function).
id: StringThe surface id within its kind (component / tab / cmd / tool / fn path).
mode: StringThe thin/fat mode (fat / thin / na).
verdict: Stringcovered / allowlisted / missing.
reason: StringThe allowlist reason (only set when verdict == allowlisted).
ts_micros: i64Row timestamp (micros). Shared across one run’s rows.
Implementations§
Source§impl CoverageRow
impl CoverageRow
Sourcepub fn from_node(
run_id: &str,
workspace: &str,
node: &SurfaceNode,
verdict: Verdict,
reason: &str,
ts_micros: i64,
) -> Self
pub fn from_node( run_id: &str, workspace: &str, node: &SurfaceNode, verdict: Verdict, reason: &str, ts_micros: i64, ) -> Self
Build a row from a node + verdict (the writer’s per-node mapping).
Sourcepub fn verdict(&self) -> Verdict
pub fn verdict(&self) -> Verdict
The parsed verdict (defaults to Verdict::Missing for an unknown tag —
fail-safe: an unrecognized verdict counts against the gate, never for it).
Trait Implementations§
Source§impl Clone for CoverageRow
impl Clone for CoverageRow
Source§fn clone(&self) -> CoverageRow
fn clone(&self) -> CoverageRow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CoverageRow
impl Debug for CoverageRow
Source§impl<'de> Deserialize<'de> for CoverageRow
impl<'de> Deserialize<'de> for CoverageRow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for CoverageRow
Source§impl PartialEq for CoverageRow
impl PartialEq for CoverageRow
Source§fn eq(&self, other: &CoverageRow) -> bool
fn eq(&self, other: &CoverageRow) -> bool
self and other values to be equal, and is used by ==.