IF Commons GitHub

physical/package

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

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

3 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(sourceDigest: string): Promise<ReadonlyMap<string, string>>

The text of every file of the package, by its path, given the SHA-256 of the source file the criteria are in.

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

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

PACKAGE_DIRconst
const PACKAGE_DIR: string

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

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

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

The text of every file of the package, by its path, given the SHA-256 of the source file the criteria are in.

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

digestOffunction
function digestOf(bytes: Uint8Array<ArrayBufferLike>): Promise<string>

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

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

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