IF Commons GitHub

plan

Written to: 2 requirements: 2 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-dns-command FR-002, 0002-dns-command FR-003

The plan of a zone as a person approves it: what changes, and the hash of exactly that. The hash is of the plan as data, so that a plan that changed between the reading and the apply is another hash.

import { hashOf } from "./plan.ts";
hashOf({ create: [], update: [], remove: [] }); // "sha256:..."

Source: commons/archon-dns/src/plan.ts

Mutation score of this file: 43.2% (25 of 44 changes to its code were not noticed by a test).

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

hashOffunctionno test imports it
function hashOf(plan: DnsPlan): string

The hash of a plan: of its records, in an order that does not depend on how the provider listed them (the ids of the provider are part of what is changed, so they count).

planZonefunctionno test imports it
function planZone(subject: DnsSubject): Promise<{ readonly plan: DnsPlan; readonly hash: string | undefined; }>

The plan of a zone now, and its hash where it changes something.

describefunctionno test imports it
function describe(plan: DnsPlan, hash: string | undefined): string

The text a person reads before approving a plan.

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