IF Commons GitHub

physical/package

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

The files of the package (0002-csf2-package FR-002, FR-003, FR-004): from the source value 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-csf-2/src/physical/package.ts

Mutation score of this file: 12.5% (28 of 32 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(source: Source): Promise<ReadonlyMap<string, string>>

The text of every file of the package, by its path: the framework and the manifest that holds its digest.

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 5 tests of the run (5 passed, 0 failed): the library's results

makePackagefunction
function makePackage(source: Source): Promise<ReadonlyMap<string, string>>

The text of every file of the package, by its path: the framework and the manifest that holds its digest.

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.