IF Commons GitHub

standard

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0001-grc-layers FR-007

The registries of the extensions this library ships: the root, which is the one place that knows every unit by name. standardSerializers and standardSigners register what has no need of the host; standardRunners registers a runner for each piece the host gives (a connection, a reader, a client, a remote), so that a host without a database has no sql runner and says so.

import { standardSerializers } from "./standard.ts";
standardSerializers().list().map((s) => s.id); // ["cyclonedx", "intoto", "ocsf", "oscal", "sarif"]

Source: commons/grc/src/standard.ts

3 of 4 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

standardSerializersfunction
function standardSerializers(): Serializers

The serializers this library ships, registered.

Imported by 31 tests of the run (30 passed, 0 failed): the library's results

standardSignersfunction
function standardSigners(): Signers

The signers this library ships, registered.

Imported by 21 tests of the run (21 passed, 0 failed): the library's results

RunnerHosttypeno test imports it
type RunnerHost = {
  readonly sql?: SqlConnection;
  readonly file?: FileReader;
  readonly api?: ApiClient;
  readonly remote?: Remote;
  /** The attestations that exist and the evidence policy: the `manual` runner. */
  readonly manual?: { readonly attestations: () => readonly Attestation[]; readonly policy: EvidencePolicy };
  readonly evaluators?: Evaluators;
};

What a host gives: each piece is optional, and a runner is registered for each that is given.

standardRunnersfunction
function standardRunners(host: RunnerHost): Runners

The runners for what the host gives.

Imported by 9 tests of the run (9 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.