Skip to main content

Module csv

Module csv 

Source
Expand description

CSV storage for test results. The schema is a header line followed by rows: suite,name,category,status,duration_ms,timestamp,commit,note. suite is one of protocol/unit/system; status is pass/fail/skip/unknown; commit is the changeset the test last passed at (empty when not passing); note explains a skip/fail reason (empty otherwise).

Structsยง

Summary
Aggregate counts over a set of rows.
TestRow
A single test result row.

Functionsยง

load
Read every result row from the CSV. A missing file yields an empty set so the dashboard renders cleanly before the first test run.
normalize_status ๐Ÿ”’
parse_row ๐Ÿ”’
split_csv_line ๐Ÿ”’
Split one CSV line, honouring double-quoted fields with "" escapes.
summarize
Count pass/fail/skip/unknown across the rows.