ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.go

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.go
DateNot specified in source
RepositoryJanady13/missionmatch
Revision720d47fae476b0d38477ae4401697d372b1ea2bc
Branchfeature/opportunity-to-outcome
Path or archive memberinternal/modules/commandcenter/service_federal_signal_test.go
Original SHA-256da475707c7329baa7082b680cbe31fb95cb93d491e583dcac31e4d14b7d82726
Git blob SHA84b7ce7720852a00f8ea4afddedfc8c6ac887018
Reading-copy SHA-256da475707c7329baa7082b680cbe31fb95cb93d491e583dcac31e4d14b7d82726

Original source ↗

Every recorded occurrence

These 15 records contain identical original source bytes. Their paths and revisions remain part of the archive.

Original recordBranch or archiveRevision / identifierOriginal location
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gofeature/opportunity-to-outcome720d47fae476b0d38477ae4401697d372b1ea2bcOpen original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gocollision-deconfliction4ee5a09972608ed89f8377c6665542d5f450f0a6Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gom5-price-to-win41000ad30fff4129fdaf5ec84e15ba14c27d4890Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gomaster1e9249840a4302ec82e123b9c9cb6f75badea3e4Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gows8-teaching-loopc823f0fb6bb2aba0f39001eb6de96f4000d9321fOpen original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gomag-substrateb82c7100a492dec67dfd1eda6b3f53def859be35Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gotime-to-fill-survivalb66e1e505863d4f17741a4b9ede73509e45bd6c6Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gographrag-foundationb0ddeb9f633fd138d09309d1a17b7d13bc3a67f7Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gows9-bench-ingestionf585a9ef32fa554663ce1fba9a414a54b6e49cf0Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gopresentation-readinesseb574acaa29d71ce4d0f852572e87c275c79fdb7Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.govendor-intelligencefe9796a19c261951d3f2565206c0c1b5ac294465Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gows7-federal-signal6a9f6ce9cfb13345ffb47770d4960e7c2d9c17c2Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gophase2-connectorse038d4c687aec16f8bd9bc4d907eea14d91f8704Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gofeature/aioe-upgrade2178e7298d0e5d9af83afa12402fd587f0ba6ed8Open original
Janady13/missionmatch / internal/modules/commandcenter/service_federal_signal_test.gocapture-readinessbae6af7cb2997e819174a9e9cfff5e16067a1975Open original

Recovered source transcript

package commandcenter import ( "testing" "time" "github.com/jackc/pgx/v5/pgtype" "github.com/shopspring/decimal" "github.com/missionworkforce/missionmatch/internal/platform/database/dbgen" "github.com/missionworkforce/missionmatch/internal/platform/missionclass" ) func dateVal(s string) pgtype.Date { t, _ := time.Parse("2006-01-02", s) return pgtype.Date{Time: t, Valid: true} } func amt(s string) *decimal.Decimal { d := decimal.RequireFromString(s) return &d } // TestGroupIncumbentMix proves the pure grouping folds the flat (award, role) rows into one entry per // award, preserves the query's pop_end_date ordering, carries the evidence on every role, and renders the // award value at two decimal places. The query already sorts by award id within a pop_end_date, so the // grouping is a single ordered pass. func TestGroupIncumbentMix(t *testing.T) { rows := []dbgen.ListIncumbentRolesByRecompeteRow{ {RecordID: "AWD-1", RecipientName: "Acme Defense", AwardingAgency: "DoD", NaicsCode: "541512", AwardAmount: amt("1000000"), PopEndDate: dateVal("2026-09-30"), LaborCategory: "SIGINT Analyst", RoleCount: 3, Evidence: "SIGINT Analyst x3"}, {RecordID: "AWD-1", RecipientName: "Acme Defense", AwardingAgency: "DoD", NaicsCode: "541512", AwardAmount: amt("1000000"), PopEndDate: dateVal("2026-09-30"), LaborCategory: "Systems Engineer", RoleCount: 2, Evidence: "Systems Engineer x2"}, {RecordID: "AWD-2", RecipientName: "Beta Corp", AwardingAgency: "USAF", NaicsCode: "541330", AwardAmount: nil, PopEndDate: dateVal("2026-12-31"), LaborCategory: "COMSEC Custodian", RoleCount: 1, Evidence: "COMSEC Custodian"}, } got := groupIncumbentMix(rows) if len(got) != 2 { t.Fatalf("expected 2 grouped awards, got %d", len(got)) } if got[0].RecordID != "AWD-1" || got[1].RecordID != "AWD-2" { t.Fatalf("award order not preserved: %q then %q", got[0].RecordID, got[1].RecordID) } if len(got[0].Roles) != 2 { t.Fatalf("AWD-1 should carry 2 roles, got %d", len(got[0].Roles)) } if got[0].Roles[0].LaborCategory != "SIGINT Analyst" || got[0].Roles[0].RoleCount != 3 || got[0].Roles[0].Evidence != "SIGINT Analyst x3" { t.Fatalf("AWD-1 first role wrong: %+v", got[0].Roles[0]) } if got[0].AwardValue == nil || *got[0].AwardValue != "1000000.00" { t.Fatalf("AWD-1 value not rendered at two decimals: %v", got[0].AwardValue) } if got[0].PopEndDate != "2026-09-30" { t.Fatalf("AWD-1 pop_end_date wrong: %q", got[0].PopEndDate) } if got[1].AwardValue != nil { t.Fatalf("AWD-2 has a null award amount, value should stay nil, got %v", *got[1].AwardValue) } if len(got[1].Roles) != 1 || got[1].Roles[0].Evidence != "COMSEC Custodian" { t.Fatalf("AWD-2 role wrong: %+v", got[1].Roles) } } // TestGroupIncumbentMixEmpty proves the grouping returns a non nil empty slice so the JSON renders []. func TestGroupIncumbentMixEmpty(t *testing.T) { got := groupIncumbentMix(nil) if got == nil { t.Fatal("groupIncumbentMix(nil) returned nil, want an empty non nil slice") } if len(got) != 0 { t.Fatalf("expected 0 awards, got %d", len(got)) } } // TestValidMissionCode pins the panel mission filter to the shared controlled vocabulary so an unknown // code is rejected rather than silently running an empty filter, and every real code is accepted. func TestValidMissionCode(t *testing.T) { for _, c := range missionclass.Codes { if !validMissionCode(c) { t.Fatalf("controlled code %q rejected by validMissionCode", c) } } for _, bad := range []string{"", "NOPE", "sigint", "SIGINT ", "EWX"} { if validMissionCode(bad) { t.Fatalf("invalid code %q accepted by validMissionCode", bad) } } }

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