Tests: internal/report
internal/report · 15 tests
Each test is named for the property it holds, and runs against a real deployment: there is no mock of the database and no arm that skips when it is absent. The sentence is the test's name read back; the name is what go test -run takes.
embedding_test.go
- Report embedding surface is bounded and deterministic —
TestReportEmbeddingSurfaceIsBoundedAndDeterministic - Report embedding surface refuses invalid or oversized required text —
TestReportEmbeddingSurfaceRefusesInvalidOrOversizedRequiredText - Report embedding surface keeps optional parts whole —
TestReportEmbeddingSurfaceKeepsOptionalPartsWhole
report_test.go
- A community with nothing recorded is refused —
TestACommunityWithNothingRecordedIsRefused. A community with nothing recorded about it has nothing to write a report from, and a model asked to describe a list of names produces a paragraph that sounds like a subject — the one output nothing downstream can tell apart from a real one. - A report that cannot do its job is refused —
TestAReportThatCannotDoItsJobIsRefused. A report that cannot do its job is refused rather than stored. - Zero importance needs no reason —
TestZeroImportanceNeedsNoReason. Importance of zero needs no reason: "nothing here matters much" is a complete claim, and demanding a justification for it would push a model into writing one. - The same community builds the same context —
TestTheSameCommunityBuildsTheSameContext. The same community produces the same context, whatever order the facts arrive in. - An oversized parent substitutes children rather than truncating —
TestAnOversizedParentSubstitutesChildrenRatherThanTruncating. An oversized parent substitutes a child's report for that child's raw material rather than truncating the facts. - No subject disappears in a roll up —
TestNoSubjectDisappearsInARollUp. Every subject survives a roll-up, which is the property truncation does not have. - A child with no report is not substituted away —
TestAChildWithNoReportIsNotSubstitutedAway. A child with no report of its own cannot be substituted: replacing its facts with nothing would remove the subject rather than compress it. - What will not fit is dropped and counted —
TestWhatWillNotFitIsDroppedAndCounted. When even every substitution is not enough, facts are dropped and the count is reported. - A community that fits is left alone —
TestACommunityThatFitsIsLeftAlone. A community that fits is left alone: nothing substituted, nothing dropped, every fact in full. - Writing a report touches nothing outside it —
TestWritingAReportTouchesNothingOutsideIt. It writes nothing. - Child substitution uses entity identity rather than speaker display name —
TestChildSubstitutionUsesEntityIdentityRatherThanSpeakerDisplayName. Equal names and quotes do not identify a fact's owner. - A report for a child that owns no facts stands in for nothing —
TestAReportForAChildThatOwnsNoFactsStandsInForNothing