The reference tables' tests
The newest run on main of the tests of cascade-reference-tables, read as a
tree of package, capability and situation, each with what it is for and each case linked to its source.
Failures come first within a capability, and the levels that hold one are open.
npm test, node:test over the tables' host. For an agent: cascade-reference-tables.ctrf.json.
cascade-reference-tables 0.0.0 · commit 4fa45c2 · unreleased: what main does today, not a compatibility promise
The host that builds the project's reference tables from their publishers' releases, the builders it runs, and the feed an app reads them from.
Glossary
- announcement (announcement page, announcement pattern)
- a public page on which a publisher names its versions; a source detected by its announcement is never downloaded by the host.
- builder (builders)
- here, the code that turns one publisher's release into rows: a `build.ts` beside the `source.ttl` that declares its source. It touches no network and no file it was not handed.
- cardinality
- of a mapping row, how many codes map to how many: `1:1`, `1:n` (one code became several) or `n:1` (several became one).
- carry (carries, carried, carrying, carried forward)
- to keep, in a new version, the rows of a code the publisher's release no longer names.
- chain (chains, chained)
- in ICD-10-CM's conversions, a code replaced by a code that was itself replaced later; the builder follows it to the codes in effect.
- check (checks, checked)
- here, a host asking a publisher whether it has a release newer than the feed's current versions.
- classification (classifications, classes)
- ClinVar's statement of what a variant means for health, such as pathogenic or benign.
cascade:clinvarClassification - ClinVar
- the public archive, kept by the US National Library of Medicine, of how laboratories classify variants, from benign to pathogenic; one of the reference tables.
cascade:VariantClassifications - code system (code systems)
- a published list of codes for one kind of thing, such as RxNorm for medicines, LOINC for lab tests and SNOMED CT for clinical findings.
- conversion (conversions)
- in ICD-10-CM, CDC's statement that a code of a new year takes the place of earlier ones.
- declaration (declarations)
- the RDF a source is declared in (`source.ttl`, `builder.ttl`).
- differences
- the rows a version added, removed and changed against the version it revises.
- drug class (drug classes)
- a group of medicines that work alike or are built alike, such as ACE inhibitors, as the US Food and Drug Administration assigns them.
cascade:DrugClasses - EPC
- established pharmacologic class: FDA's name for the drug class on a medicine's label.
- expression (expressions, HGVS expression)
- a variant written in HGVS, the standard notation, such as `NM_000249.4:c.2042C>T`; a record's expression finds its row.
cascade:hgvsExpression - feature file (feature files)
- a plain-text file that states rules, each with examples written as steps (given, when, then); this repository's are under `rules/`.
- feed (feeds)
- a published list of the versions of reference tables, which an app reads to find newer ones.
- finding (findings)
- here, something a builder left out of its rows and says so, such as a term it cannot map; it is shown with the differences and does not stop the build.
- history answer (history answers)
- what RxNav, NLM's lookup service, says became of one code: still active, or retired and replaced by which.
- host (hosts)
- here, the program that runs builders: it detects a release, downloads it, checks the rows, names the version and publishes. This repository's `host/` is one.
- label (labels)
- of a series, its name as a person reads it, such as 'Vaccine groups'; a feed gives it and a check updates it.
- mapping row (mapping rows)
- a row saying one code relates to another by a property, such as "is a member of".
- name row (name rows)
- a row giving a code its name.
cascade:CodeNames - NLM
- the US National Library of Medicine, which publishes RxNorm and the history of its codes.
- panel (panels)
- a set of lab tests reported together, such as a thyroid panel.
- precise ingredient (precise ingredients)
- a particular form of an ingredient, such as lisinopril anhydrous of lisinopril, which some medicine products are tied to.
cascade:hasPreciseIngredient - prescribable
- of a drug, that a clinician can prescribe as it is named; NLM publishes the RxNorm subset of such drugs as its prescribable content.
- publisher (publishers)
- the organisation that issues a code system's releases, such as CDC, NLM or Regenstrief.
- pull request (pull requests)
- on GitHub, a proposed change that a person reads and accepts or rejects.
- Range request (Range)
- an HTTP request for a file from a given byte on, which a server answers with only the rest of the file.
- Refusal
- the error thrown when the package declines a request it understood, such as a name it does not have; it has written nothing.
- Regenstrief
- the Regenstrief Institute, which publishes LOINC.
- release (releases)
- one issue of a publisher's files, such as RxNorm's of a given month. (A "GitHub release" is always written so.)
- release label (release labels, labelled, unlabelled)
- the short text a check gives a release to tell it from the others: its Last-Modified date or its release version; `unlabelled` when the publisher gives neither.
- review status
- ClinVar's statement of how well a classification is supported, such as `criteria provided, multiple submitters, no conflicts`.
cascade:clinvarReviewStatus - revise (revises, revised)
- of a version, to take the place of its series' current version.
- row (rows)
- one line of a table: of a view, what one view entry holds, a cell per column; of a reference table, what it says of one code or variant.
- rows file (rows files)
- the file holding one version's rows: gzipped N-Quads, named by its checksum.
- series
- one of the reference tables across its versions, such as RxNorm's product ingredients.
cascade:ReferenceSeries - shapes
- requirements on what a feed or a source's declaration must state, written in SHACL, the W3C language for checking data; each has a message saying what is wrong.
https://www.w3.org/TR/shacl/ - source (sources)
- here, one publisher's release as a host is told of it in `source.ttl`: where it is, how a new one is detected, its files, its licence and the series it fills.
- status row (status rows)
- a row saying a code is retired, and which codes replace it.
cascade:RetiredCodes - submitter (submitters)
- a laboratory that sent ClinVar its classification of a variant.
- table kind (table kinds)
- what a reference table's rows say, such as product ingredients or vaccine groups; the vocabulary declares each kind.
cascade:TableKind - term type (term types)
- RxNorm's kind of a concept: `IN` an ingredient, `PIN` a precise ingredient, `SCD`, `SBD`, `GPCK`, `BPCK` kinds of product.
- triple (triples)
- one statement of RDF, made of a subject, a property and a value.
- unparsable
- of text, that cannot be read as the kind of thing it should be, such as a date that is no date.
- variant (variants)
- a difference in one of a person's genes from the reference sequence, as a genetic test reports it.
cascade:GeneticVariantFinding - variation (variations)
- ClinVar's record of one variant, with a number such as 90011.
- vector (vectors)
- in the vocabulary's tests, an input written down beside the output every implementation must give for it.
- version (versions, table version, table versions)
- here, one series' rows as built from one release; it is named by its content and never changed once published.
- violation (violations)
- one way a feed or a declaration breaks a shape, as text ending in the shape's message.
No entry matches.
Checking a feed against its shapes Shapes.read(), shapes.violations(), feedViolations() 13 passed
A feed is the published list of every series and its versions; its shapes (`shapes/feed.shapes.ttl`) say what it must state, and each broken constraint gives a violation ending in the constraint's message. An app that reads a feed can rely on what the shapes hold, and a host refuses to write a feed they do not.
Source shapes.test.ts
given the valid feed of fixtures/feeds/valid 1 passed
- passed returns no violation165 ms
given that feed with one statement deleted, added or replaced, the one a constraint's message names 12 passed
- passed returns a violation ending "The catalog has one title."104 ms
- passed returns a violation ending "A series has one name."86 ms
- passed returns a violation ending "A series names its one licence."70 ms
- passed returns a violation ending "A series has one current version."82 ms
- passed returns a violation ending "A version has its publisher's one release label."62 ms
- passed returns a violation ending "A version's pav:version is its dcat:version."69 ms
- passed returns a violation ending "A version's notes count the rows it added, removed and changed."59 ms
- passed returns a violation ending "A version names its one builder."44 ms
- passed returns a violation ending "A version names the files it was built from, each by its content, with its one title and checksum."50 ms
- passed returns a violation ending "A version has one distribution, its rows file: a gzipped N-Quads file with one download URL and one SHA-256 checksum."61 ms
- passed returns a violation ending "A version is named by its content, an ni:///sha-256; name."40 ms
- passed returns a violation ending "A mapping set names its builder as its mapping tool."47 ms
Recording when each source was last checked checked.json, mergeChecked() 5 passed
`checked.json`, published beside the feed, says for each source when it was last checked and what the check found: `new`, `nothing new`, or `not checked` with a reason. `shapes/checked.schema.json` is its schema.
Source checked.test.ts
given the checked.json a build writes and the one a publish writes 2 passed
- passed conforms to the schema6 ms
- passed keeps every source's last check when two files are merged3 ms
given a checked.json written by hand 3 passed
Reading a release's files csv(), delimited(), fixedWidth(), jsonLines(), xlsx(), xmlElements() 20 passed
A builder is handed its publisher's release and reads each file through one of these readers, a line, a row or an element at a time. A file that cannot be read as asked throws a Refusal naming it, and the build writes nothing.
Source readers.test.ts
csv() 7 passed
- passed gives each record's fields by the header's names, with its line number2 ms
- passed reads a quoted field holding a comma, a line break and a doubled quote1 ms
- passed ignores a byte order mark and an empty line0 ms
- passed refuses an empty file9 ms
- passed refuses a quote never closed, naming the line7 ms
- passed refuses a record with more fields than the header, naming the line5 ms
- passed refuses a file lacking a column the builder requires, naming the column5 ms
delimited() 5 passed
- passed cuts each line at the separator asked, keeping a field's spaces and an empty last field8 ms
- passed gives a line longer than one read of the file whole13 ms
- passed reads a gzip file line for line as its plain twin9 ms
- passed refuses a file that is not gzip when gzip is asked17 ms
- passed refuses a gzip file cut short, naming the file16 ms
fixedWidth() 1 passed
jsonLines() 1 passed
xlsx() 2 passed
xmlElements() 4 passed
- passed gives each element of the name asked with its attributes, text and children1 ms
- passed reads a zip's one XML entry as it reads the plain file, and finds its 10 associations19 ms
- passed refuses a file whose XML tags do not match13 ms
- passed refuses a file named .zip that is no zip, naming the file8 ms
Checking that a builder conforms conformanceExamples(), runConformance() 26 passed
`builder/conformance.feature` holds the three examples every builder passes on its own fixture release: its declarations conform, its release gives its expected rows, and two builds give the same rows. `conformanceExamples()` reads them and `runConformance()` runs one on a builder's folder, as `npm run host -- test` does.
Source conformance.test.ts
given `fixtures/builder` 3 passed
given `builders/cdc-cvx` 3 passed
given `builders/cdc-icd-10-cm` 3 passed
given `builders/ncbi-clinvar` 3 passed
given `builders/nlm-rxnorm-prescribable` 3 passed
given `builders/regenstrief-loinc` 3 passed
given `builders/va-med-rt` 3 passed
given a builder whose rows differ from one build to the next 1 passed
given a builder outside the repository, with the vocabulary's folder given 4 passed
- passed says the vocabulary is "as given"1 ms
- passed runs the example: its declarations conform to the shapes69 ms
- passed runs the example: its release gives the expected rows, each of a series its source declares and conforming to its kind's shape672 ms
- passed runs the example: a build gives the same rows every time1.18 s
Vaccine codes and groups from CDC's CVX files builders/cdc-cvx 6 passed
The builder reads CDC's `CVX.txt` (vaccine codes) and `VG.txt` (the vaccine groups they belong to). A line it cannot read as CDC writes them refuses the build, naming the file, the line and why.
Source cdc-cvx.test.ts
given a line CDC would not write 6 passed
- passed refuses a status it does not map301 ms
- passed refuses a CVX.txt line with 6 fields105 ms
- passed refuses a CVX.txt line with no code87 ms
- passed refuses a VG.txt line naming a code CVX.txt lacks114 ms
- passed refuses a VG.txt line with 4 fields136 ms
- passed refuses a VG.txt line with no vaccine group code90 ms
ICD-10-CM code conversions from CDC's files builders/cdc-icd-10-cm 5 passed
CDC's conversion table says which code of a new year takes the place of which earlier ones. The builder gives a mapping row for each conversion, with its cardinality (how many to how many), and a status row saying what replaces a retired code.
Source cdc-icd-10-cm.test.ts
given a conversion table with a one-to-one change, a split, a merge and two chains 5 passed
- passed gives a 1:1, a 1:n and an n:1 mapping row as the table states them3 ms
- passed follows a chain to the codes in effect, marking those rows as chained0 ms
- passed shows a split or a merge inside a chain in the chained rows' cardinality0 ms
- passed gives no mapping row to a code no longer in effect0 ms
- passed lists every code in effect that replaces a retired code, on its status row1 ms
Drug codes from NLM's prescribable RxNorm builders/nlm-rxnorm-prescribable 6 passed
The builder reads RxNorm's release files, and RxNav's history answers for codes that left a release. What it cannot map refuses the build.
Source nlm-rxnorm-prescribable.test.ts
given RxNav's history answers 3 passed
- passed gives a status row for each retired code and none for a code still active54 ms
- passed refuses a status it does not map, naming the line7 ms
Rule H20 of `rules/carry.feature`, whose example runs the example builder; this is this builder's own sentence.
- passed refuses an answer with no status, naming the line5 ms
Rule H20 of `rules/carry.feature`, whose example runs the example builder; this is this builder's own sentence.
given a release's `RXNCONSO` and `RXNREL` lines 2 passed
given a build that yields a drug products row for an ingredient 1 passed
- passed refuses it with the vocabulary's shape message548 ms
Drug classes from VA's MED-RT builders/va-med-rt 8 passed
The builder reads MED-RT's XML for the drug classes FDA's labelling gives each RxNorm code. An association it cannot read refuses the build, naming the association by its place, relation and codes.
Source va-med-rt.test.ts
given associations and concepts of authority `FDASPL` the builder cannot read 8 passed
- passed refuses an EPC association from a class that is no EPC45 ms
- passed refuses a has_MoA from a code that is not RxNorm5 ms
- passed refuses a has_PE to a MeSH code4 ms
- passed refuses a has_MoA to a class that is no MoA4 ms
- passed refuses a has_PE to a class that is no PE5 ms
- passed refuses a has_SC to a MED-RT class that is no EXT3 ms
- passed refuses a MeSH code given two names3 ms
- passed refuses a class with no concept to name it5 ms
Lab codes and panels from Regenstrief's LOINC builders/regenstrief-loinc 26 passed
The builder reads a LOINC release a person downloaded: code names, code status and panel members. LOINC's licence shapes it: nothing carrying a third party's copyright notice is published, and no field is edited.
Source regenstrief-loinc.test.ts
given a line LOINC would not write 13 passed
- passed refuses a panel member that is a part, not a LOINC code156 ms
- passed refuses a code of the names that is an answer list, not a LOINC code122 ms
- passed refuses a replacement that is an answer, not a LOINC code145 ms
- passed refuses a panel member the names do not carry82 ms
- passed refuses a panel the names do not carry116 ms
- passed refuses a code with no display name113 ms
- passed refuses a status the builder does not map107 ms
- passed refuses a code given twice87 ms
- passed refuses a column the builder reads gone117 ms
- passed refuses a record of another width112 ms
- passed refuses a replacement the names lack89 ms
- passed refuses a sequence that is no integer107 ms
- passed refuses a ParentId that is no number80 ms
given a third party's copyright notice 4 passed
given a retired code 3 passed
given a panel listed in more than one copy 3 passed
given the fixture release 2 passed
- passed writes each label and each panel row's fields as the release has them5 ms
- passed names a panel member row as the vocabulary's panel-members-1.ttl does2 ms
Rule H2 of `rules/rows.feature`, as the vocabulary's vector for panel member rows holds it.
given the page LOINC announces versions on 1 passed
Variant classifications from NCBI's ClinVar builders/ncbi-clinvar 16 passed
The builder reads ClinVar's monthly `variant_summary` and its `hgvs4variation` file, and gives a classification row for each variation: its classes, its review status and the HGVS expressions that find it. What it leaves out is a finding, shown to whoever reviews the version; it is no refusal.
Source ncbi-clinvar.test.ts
given the vocabulary's ClinVar vectors 3 passed
given the fixture release 6 passed
- passed gives variation 90011 both of its expressions and both of its classes1 ms
- passed gives each classified variation a name row0 ms
- passed gives no row to a variation only hgvs4variation has0 ms
- passed reports exactly five findings, one for each thing it left out1 ms
- passed keeps the row of a variation only the summary has, found by its name's expression0 ms
- passed gives the same rows and findings when the files' columns are in another order500 ms
given a summary without the `SCVs` column, as before 2023 1 passed
given a file lacking a column the builder needs 2 passed
given a version built from the fixture release 4 passed
- passed states the genes the series covers3 ms
Rule H25 of `rules/versions.feature`.
- passed cites the credit the source declares, ending with NCBI's caution1 ms
- passed names both files as its inputs, the summary by its address in NCBI's archive4 ms
- passed keeps only the file NCBI does not archive in the release7 ms
Rule H23 of `rules/versions.feature`.
- passed states the genes the series covers3 ms
Declaring a source readSource(), declarationViolations() 36 passed
A source is one publisher's release as the host is told of it in `source.ttl`: where it is, how a new release is detected, its files, its licence and the series it fills. `shapes/source.shapes.ttl` holds the declaration to that, and each broken constraint gives a violation ending in the constraint's message.
Source source.test.ts
given each source the repository declares 7 passed
- passed returns no violation for `builders/cdc-cvx`151 ms
- passed returns no violation for `builders/cdc-icd-10-cm`99 ms
- passed returns no violation for `builders/ncbi-clinvar`87 ms
- passed returns no violation for `builders/nlm-rxnorm-prescribable`79 ms
- passed returns no violation for `builders/regenstrief-loinc`82 ms
- passed returns no violation for `builders/va-med-rt`61 ms
- passed returns no violation for `fixtures/carrying`50 ms
given a source with one statement changed 28 passed
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for no release API111 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for a folder listing beside a release API89 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for a file with a download URL in place of its path in the release52 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for VG.txt with no download URL78 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for no folder listing54 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for a file with no name pattern70 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for a file with no address template49 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for no announcement page53 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for a name pattern with two groups55 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for a file archived under an announcement52 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for hgvs4variation.txt.gz with no download URL43 ms
- passed returns a violation ending "A source detected by its release API names that API and each file by its path in the release's zip…" for a file with a download URL beside its address template51 ms
- passed returns a violation ending "A file of a source is compressed, if at all, as gzip." for a file compressed as zip45 ms
- passed returns a violation ending "A file of a source says once, as a boolean, whether the release archives it." for archived written as text57 ms
- passed returns a violation ending "A file of a source says once, as a boolean, whether the release archives it." for archived stated twice48 ms
- passed returns a violation ending "Only a source detected by its announcement names an announcement page." for an announcement page on a source not detected by one45 ms
- passed returns a violation ending "A source fills at least one series, each a urn:uuid: with one name and one table kind." for a gene written as a number59 ms
- passed returns a violation ending "A source names its one licence, one the tables list." for a licence the tables do not list45 ms
- passed returns a violation ending "A source's licence's policy publishes the rows made from it." for the UMLS licence, whose policy publishes no rows60 ms
- passed returns a violation ending "A source whose licence's policy archives none of its publisher's files marks none archived." for a file marked archived under LOINC's licence, whose policy archives none67 ms
- passed returns a violation ending "A source says nothing of a licence or a licence's policy." for a licence that permits derivative works54 ms
- passed returns a violation ending "A source says nothing of a licence or a licence's policy." for a policy for a licence the source gives itself54 ms
- passed returns a violation ending "A series carrying rows forward does not hold code status." for a code status series that carries rows forward43 ms
- passed returns a violation ending "A series says once, as a boolean, whether it carries rows forward." for carries rows forward written as text56 ms
- passed returns a violation ending "A history lookup names one code system and one URL template, which holds {code}." for a history lookup address with no {code}45 ms
- passed returns a violation ending "A source has at most one history lookup." for a second history lookup47 ms
- passed returns a violation ending "A source with a history lookup fills exactly one code status series." for no code status series beside a history lookup71 ms
- passed returns a violation ending "A source with a history lookup fills at least one series carrying rows forward." for no series carrying rows forward beside a history lookup60 ms
given cdc-cvx declared under LOINC's licence, its files not archived 1 passed
- passed returns no violation46 ms
Building a version of a table build(), Feed.rowsOf() 6 passed
`build()` runs a builder on a release, and for each series whose rows changed writes a rows file, a new version in the feed and a GitHub release to hold them. These leaves are the situations no rule's example shows; the rules themselves are under "Rules a host follows".
Source feed.test.ts
build() 5 passed
- passed writes a feed that conforms when a builder yields rows for one series of three174 ms
- passed gives a second build of the same file, newly modified, a release tag of its own1 ms
- passed finds the current versions' rows files beside the feed, so the next version revises them1.92 s
- passed throws "would not conform", and writes no rows file, when the feed it would write breaks a shape817 ms
- passed keeps a series of a dropped table kind at its current version1.95 s
Rule H14 of `rules/publish.feature`, whose example does not check that the retired series is still in the feed.
Feed.rowsOf() 1 passed
Carrying forward the rows of a code that leaves a release carry(), withProperty() 3 passed
A series that carries rows forward keeps the rows of a code its publisher's new release no longer names, so a record coded long ago still finds its table row. `carry()` returns those rows; `withProperty()` rewrites a carried mapping row to the property its table kind now fixes.
Source carry.test.ts
carry() 2 passed
Rule H19 of `rules/carry.feature`, whose example carries names; this is RxNorm's carried form.
withProperty() 1 passed
Rule H27 of `rules/carry.feature`, whose one example carries a vaccine group, which has no sequence.
Describing what a version changed differences(), differenceLines(), markdown() 14 passed
Each new version goes to a person as a pull request listing the rows added, removed and changed. `differences()` finds them, `differenceLines()` writes each as a line a reviewer can read, and `markdown()` lays the lines out as the pull request's body.
Source differences.test.ts
differenceLines() 9 passed
- passed writes a name row as its code and label5 ms
- passed writes a mapping row as its two codes and the property between them2 ms
- passed writes a status row as its code, "retired" and the codes that replace it1 ms
- passed writes a classification row as its variation, its classes by label, its review status, its day and its count of expressions1 ms
- passed shows what a changed row was1 ms
- passed shows a part a line otherwise omits when that part is what changed1 ms
- passed sorts each list by code, 9 before 101 ms
- passed escapes a label GitHub would read as a mention, an issue link, crossed-out text or HTML0 ms
- passed writes a code holding a percent sign as it is1 ms
markdown() 5 passed
- passed lists three rows under their count, unfolded3 ms
- passed folds a list of twelve after its count1 ms
- passed never shows a series' urn:uuid:1 ms
- passed cuts a list of 2,000 to under 65,536 characters, saying how many more there are62 ms
- passed leaves a short list's unused share to a long one68 ms
Downloading a publisher's file patiently patientFetch() 10 passed
`patientFetch()` wraps `fetch` for a publisher's large files: a download that is cut off is asked for again from where it stopped, and the caller gets one whole answer or an error. It resumes only when the publisher answers with the exact rest of the same version of the file.
Source patient.test.ts
when a download is cut off 3 passed
when the publisher answers a resume wrongly 3 passed
when the publisher answers with an error 2 passed
when no attempt reads anything new 2 passed
Finding a rows file in GitHub releases releaseStore() 3 passed
Every version's rows file is kept as an asset of a GitHub release. `releaseStore()` gives a host a store that finds one by its file name, which is how a publish fetches the rows the site serves.
Source stores.test.ts
store.get() 3 passed
Running the host from the command line host/src/cli.ts 9 passed
Source cli.test.ts
given no command 1 passed
- passed prints the usage and exits 2514 ms
given a command the host does not have 1 passed
- passed prints the usage and exits 2479 ms
given a command without what it needs 3 passed
- passed prints the usage for `check` and exits 2532 ms
- passed prints the usage for `build` and exits 2446 ms
- passed prints the usage for `publish` and exits 2461 ms
given a release without a label, or a label without a release 2 passed
- passed prints the usage for `build cdc-cvx --release` and exits 2535 ms
- passed prints the usage for `build cdc-cvx --label` and exits 2527 ms
given a release the builder cannot read 1 passed
- passed says it refuses and exits 11.24 s
given a builder that conforms 1 passed
- passed prints ok for each example and exits 03.54 s
Rules a host follows, run on this host rules/steps.md 85 passed
The rules any host of the tables must follow are the feature files under `rules/`, each rule with its id (H1 to H33) and its examples; `rules/steps.md` says what each step means. Every example is run here on this host, on an empty feed, with the example builder of `fixtures/builder/`.
Source rules.test.ts
given `rules/announcement.feature` 8 passed
- passed runs the example: a version no series has is announced, the newest of those the page names, and compared as numbers64 ms
- passed runs the example: the version a series has is nothing new1.12 s
- passed runs the example: an older version on the page is no news914 ms
- passed runs the example: a newer version than the series has is announced854 ms
- passed runs the example: a check that announces writes announced.json, with the command that builds it, and no version19 ms
- passed runs the example: the check fails: a page that answers 4038 ms
- passed runs the example: the check fails: a page without the pattern3 ms
- passed runs the example: the check fails: an empty page3 ms
given `rules/carry.feature` 5 passed
- passed runs the example: codes that leave are carried, a withdrawn group is not, and only codes not yet retired are looked up1.81 s
- passed runs the example: a code that comes back is the release's again, and is not retired2.35 s
- passed runs the example: a code system's space moves, and every row of the old space is withdrawn and never looked up1.33 s
- passed runs the example: an unknown status784 ms
- passed runs the example: a vaccine group carried from before the move to member of1.11 s
given `rules/dated-address.feature` 6 passed
- passed runs the example: with no version, the newest of the last three months that has a file is new14 ms
- passed runs the example: with no version and no file in the last three months, there is nothing new3 ms
- passed runs the example: after a version, the month after its label is asked for, and is new when the publisher has it449 ms
- passed runs the example: after a version, a month the publisher does not have yet is nothing new446 ms
- passed runs the example: a builder with a new version rebuilds the month it built when the next month is not there452 ms
- passed runs the example: a version names the file of its month by that file's name and address437 ms
given `rules/detection.feature` 12 passed
- passed runs the example: the first check finds a release, labelled by its Last-Modified date7 ms
- passed runs the example: a series with no version is new, though no file changed430 ms
- passed runs the example: a builder with a new version rebuilds a release it has built, though no file changed433 ms
- passed runs the example: a builder with a new version that builds nothing new is not asked to rebuild at the next check730 ms
- passed runs the example: an unparsable Last-Modified leaves the release unlabelled3 ms
- passed runs the example: the publisher answers 304439 ms
- passed runs the example: the publisher ignores If-Modified-Since and answers 200 with the bytes held429 ms
- passed runs the example: bytes a build found no new rows in are nothing new at the next check743 ms
- passed runs the example: with no Last-Modified, the bytes any current version holds are nothing new877 ms
- passed runs the example: a release changing only a name gives a new version of the names series alone870 ms
- passed runs the example: a publisher that cannot be reached792 ms
- passed runs the example: a build that fails after the release is found, as when the history of carried codes cannot be reached40 ms
given `rules/feed.feature` 2 passed
given `rules/folder-listing.feature` 6 passed
- passed runs the example: a check takes each file from the newest folder in effect that has it, and leaves a folder not yet in effect10 ms
- passed runs the example: files listed at the times a version records are nothing new, and nothing is downloaded457 ms
- passed runs the example: a file listed at a new time is new472 ms
- passed runs the example: a folder that takes effect is new453 ms
- passed runs the example: a file no folder in effect has is an error2 ms
- passed runs the example: a zip lacking the file is refused43 ms
given `rules/naming.feature` 2 passed
given `rules/publish.feature` 12 passed
- passed runs the example: after three releases the names series' first version is in the releases only1.35 s
- passed runs the example: the publish is stopped: its bytes do not match its checksum909 ms
- passed runs the example: the publish is stopped: its rows are another version's910 ms
- passed runs the example: the publish is stopped: it is in no release885 ms
- passed runs the example: a check of one source keeps the other's466 ms
- passed runs the example: a series of a dropped kind stays in the feed, and a new version still conforms873 ms
- passed runs the example: a series the source builds takes no new version: its kind is undeclared781 ms
- passed runs the example: a series the source builds takes no new version: an undeclared kind ahead of its own749 ms
- passed runs the example: a series the source builds takes no new version: its kind is another declared one770 ms
- passed runs the example: a series the source builds takes no new version: it has a second declared kind777 ms
- passed runs the example: a vocabulary without the kind of code status558 ms
- passed runs the example: a table with a version, and one without505 ms
given `rules/release-api.feature` 5 passed
- passed runs the example: the first check finds the current release, labelled by its release version6 ms
- passed runs the example: a release a version was built from is nothing new442 ms
- passed runs the example: a newer current release is built as a version revising the last940 ms
- passed runs the example: a list marking no release current is an error3 ms
- passed runs the example: a zip lacking the file the source names is refused42 ms
given `rules/rows.feature` 16 passed
- passed runs the example: 141 is in the group 88440 ms
- passed runs the example: a build is refused: a row failing its kind's shape129 ms
- passed runs the example: a build is refused: a names row whose other name is its preferred118 ms
- passed runs the example: a build is refused: a row of a series the source does not declare34 ms
- passed runs the example: a build is refused: a row in no form of the schema33 ms
- passed runs the example: a build is refused: a term type row with a field of another form29 ms
- passed runs the example: a build is refused: one key given twice with different triples35 ms
- passed runs the example: a build is refused: a release missing a file its source declares29 ms
- passed runs the example: the vocabulary's row for variation 90011 in the builder's form gives the vocabulary's Turtle5 ms
- passed runs the example: a build is refused: both submitter counts36 ms
- passed runs the example: a build is refused: an empty list of expressions29 ms
- passed runs the example: a build is refused: an expression IRI holding a raw >35 ms
- passed runs the example: a build is refused: an expression that is not a coding one128 ms
- passed runs the example: a build is refused: a classification of no concept161 ms
- passed runs the example: a build is refused: a second review status31 ms
- passed runs the example: one expression on two rows of a version, a chunk of rows apart, is refused naming it857 ms
given `rules/versions.feature` 11 passed
- passed runs the example: the same release built twice gives one version of each series804 ms
- passed runs the example: the second release revises the first875 ms
- passed runs the example: a version built by a new builder version of a release already built is labelled to differ from the version it revises957 ms
- passed runs the example: a file kept by default is in the release479 ms
- passed runs the example: a file marked not archived is named by the version, and the release holds the rows alone496 ms
- passed runs the example: a source whose licence's policy archives no publisher file keeps no input, by release API488 ms
- passed runs the example: a source whose licence's policy archives no publisher file keeps no input, by folder listing492 ms
- passed runs the example: the notes of a build begin with the source's credit, before any series447 ms
- passed runs the example: a finding is listed under Findings and the version is built527 ms
- passed runs the example: each version states the genes489 ms
- passed runs the example: the same rows with another list of genes is a new version985 ms
Build and packaging 3 passed
The published feed, held to its shapes feed/feed.ttl 1 passed
`feed/feed.ttl` is the feed this repository publishes, checked in; it is held to the same shapes as any feed.
Source repository.test.ts
- passed returns no violation from feedViolations()1.13 s
The licences the source shape lists, held to vocab/licences.ttl 2 passed
The source shape (`shapes/source.shapes.ttl`) and `vocab/licences.ttl` are two files that must name the same licences.
Source repository.test.ts