IF Commons GitHub

logical/rev2

Written to: 2 requirements: 2 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-sp800-171-r2 FR-001, 0003-sp800-171-r2 FR-004

The reading of SP 800-171 Revision 2 and of SP 800-171A (0003-sp800-171-r2 FR-001, FR-004): a pure function of the text that pdftotext -raw makes of the two publications. NIST publishes no OSCAL for Revision 2, the revision CMMC Level 2 is assessed against, so the requirements (110, each in the family it is printed under) and the assessment objectives (320, the lettered ones of a requirement as 3.1.1[a] and the single one of a requirement as its number) are taken from the printed text. The page furniture (running heads, page numbers, the licence line) is dropped wherever a page break falls inside a sentence, and the worked example of Chapter Two of 800-171A, which prints requirement 3.1.3 once before the requirements, is read over by the requirement's own block.

import { readRequirements } from "./rev2.ts";
readRequirements("3.1 ACCESS CONTROL\n3.1.1 Limit access.\nDISCUSSION\nAPPENDIX A\n").requirements.length; // 1

Source: commons/catalog-nist-sp800/src/logical/rev2.ts

Mutation score of this file: 62.7% (93 of 249 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.

logical.Rev2Requirementstypeno test imports it
type Rev2Requirements = { readonly requirements: readonly OutControl[]; readonly families: ReadonlyMap<string, string> };

The requirements of Revision 2 with the families (3.1 and its name) they are printed under.

logical.readRequirementsfunctionno test imports it
function readRequirements(text: string): Rev2Requirements

The requirements of SP 800-171 Revision 2 from its text: from the heading 3.1 ACCESS CONTROL of Chapter Three to Appendix A.

logical.readObjectivesfunctionno test imports it
function readObjectives(text: string, requirements: readonly OutControl[]): readonly OutControl[]

The assessment objectives of SP 800-171A from its text, each as a control of the requirement it determines.

Rev2Requirementstypeno test imports it
type Rev2Requirements = { readonly requirements: readonly OutControl[]; readonly families: ReadonlyMap<string, string> };

The requirements of Revision 2 with the families (3.1 and its name) they are printed under.

readRequirementsfunction
function readRequirements(text: string): Rev2Requirements

The requirements of SP 800-171 Revision 2 from its text: from the heading 3.1 ACCESS CONTROL of Chapter Three to Appendix A.

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

readObjectivesfunction
function readObjectives(text: string, requirements: readonly OutControl[]): readonly OutControl[]

The assessment objectives of SP 800-171A from its text, each as a control of the requirement it determines.

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

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