ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

func TestMissionReadinessImpactPct(t *testing.T) · demandedTotal

This relation defines demandedTotal in the source section “func TestMissionReadinessImpactPct(t *testing.T) · demandedTotal”. It specifies the displayed relationship between the named quantities or parameters. Its interpretation depends on the source’s stated variables…

Implementation mathematicsSource recovered; runtime not executed
Learn with the Atlas

Learn to read this model

Start with the symbols, follow the operations, and check what the result means.

Open guided lesson
gh-eq-3b6320295ec58066source-comment-equation
demandedTotal=20,gapunmet=5=>25.00pointsofoverallcoverage.demandedTotal = 20, gap unmet = 5 => 25.00 points of overall coverage.

Read the equation

This relation defines demandedTotal in the source section “func TestMissionReadinessImpactPct(t *testing.T) · demandedTotal”. It specifies the displayed relationship between the named quantities or parameters. Its interpretation depends on the source’s stated variables and conditions; this record does not assign an unprovided physical or cognitive meaning to them.

Terms & definitions

The recovered passage does not supply a separate symbol table. Read the source context for the notation used in this version; familiar letters may carry different meanings in other builds.

How it works

  1. Read demandedTotal as the quantity being defined or updated by this relation.

  2. Substitute the source-defined variables or recorded values and follow the displayed arithmetic and indexing exactly.

  3. Use this version’s variable definitions and update order. The same symbol may be assigned a different meaning in another build.

Assumptions & limits

  • This source expression was recovered from the pinned code revision. Its presence does not establish that the associated program was built, run, or scientifically validated.

Original context

Read the surrounding source passage
		if got := isRealValueSource(src); got != want {
			t.Errorf("isRealValueSource(%q): got %v want %v", src, got, want)
		}
	}
}

func TestMissionReadinessImpactPct(t *testing.T) {
	// demandedTotal = 20, gap unmet = 5 => 25.00 points of overall coverage.
	reqs := []reqMeta{{id: "r1", oppID: "o1", lcat: "Cyber", level: "secret", quantity: 20}}
	opp := map[string]oppInfo{"o1": {name: "Alpha", value: dec("1000000.00"), valueSource: "representative"}}
	gaps, _, _ := gapsFromAssignment(reqs, map[string]int{"r1": 15}, opp)
	g := findGap(gaps, "Cyber")
	if g.Unmet != 5 {
		t.Fatalf("unmet: got %d want 5", g.Unmet)
	}
	if g.ImpactModeledPct != "25.00" {
		t.Fatalf("impact: got %s want 25.00", g.ImpactModeledPct)
	}
Exact original notation
demandedTotal = 20, gap unmet = 5 => 25.00 points of overall coverage.

Related builds

Sources & provenance

Search equations, builds, manuscript text, and recovered sources.