IF Commons GitHub

physical/package

Written to: 3 requirements: 3 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-sp800-package FR-002, 0002-sp800-package FR-003, 0002-sp800-package FR-004

The files of the package: from the two catalogs to the text of each file, with the manifest's digests, and the folder where they are kept. Making is pure; reading and writing the folder is the tool's.

import { PACKAGE_DIR } from "./package.ts";
PACKAGE_DIR.endsWith("data"); // true

Source: commons/catalog-nist-sp800/src/physical/package.ts

Mutation score of this file: 15% (51 of 60 changes to its code were not noticed by a test).

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

physical.PACKAGE_DIRconstno test imports it
const PACKAGE_DIR: string

The folder of the package: the one the loader of grc reads.

physical.makePackagefunctionno test imports it
function makePackage(catalogs: Readonly<Record<"800-171" | "800-53", Catalog>>, printed: Readonly<Record<"800-171a" | "800-171r2", string>>): Promise<ReadonlyMap<string, string>>

The text of every file of the package, by its path, from the catalogs by source id and the text of the two printed publications of Revision 2 (pdftotext -raw of each).

physical.digestOffunctionno test imports it
function digestOf(bytes: Uint8Array<ArrayBufferLike>): Promise<string>

The SHA-256 of the bytes of a source file, as the package pins it.

PACKAGE_DIRconst
const PACKAGE_DIR: string

The folder of the package: the one the loader of grc reads.

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

makePackagefunction
function makePackage(catalogs: Readonly<Record<"800-171" | "800-53", Catalog>>, printed: Readonly<Record<"800-171a" | "800-171r2", string>>): Promise<ReadonlyMap<string, string>>

The text of every file of the package, by its path, from the catalogs by source id and the text of the two printed publications of Revision 2 (pdftotext -raw of each).

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

digestOffunctionno test imports it
function digestOf(bytes: Uint8Array<ArrayBufferLike>): Promise<string>

The SHA-256 of the bytes of a source file, as the package pins it.

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