From a63f4e001b1d7e59bc2fa9a5bcdc0937542df85f Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 22 Nov 2026 03:22:39 +0100 Subject: [PATCH] I6 fix: the seat-list's unit test is a row of TestTheControlRecords MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review round 1 found the indexer's unit tests rose by one in H2 (seatlists_test.go:75, TestTheSeatListIsOneObjectByItsDigest). §819 as H-A-453 (4) reads it: a module's count never rises in a change. The test becomes the row "seat-list" of TestTheControlRecords, its steps unchanged, so the count stands where main has it. Builds: design 47 H2 §819, §814; H-A-453 (4) --- .../internal/index/control_records_test.go | 1 + .../mesh-delivery-indexer/internal/index/seatlists_test.go | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/mesh-delivery-indexer/internal/index/control_records_test.go b/modules/mesh-delivery-indexer/internal/index/control_records_test.go index 580a4bcc0..2a16ce13a 100644 --- a/modules/mesh-delivery-indexer/internal/index/control_records_test.go +++ b/modules/mesh-delivery-indexer/internal/index/control_records_test.go @@ -513,6 +513,7 @@ func TestTheControlRecords(t *testing.T) { t.Errorf("a state not on the bus yet stopped the message: %v", err) } }) + t.Run("seat-list", seatListIsOneObjectByItsDigest) } // memSource is a state as views.Source, for the indexer's tools that answer from its own states. diff --git a/modules/mesh-delivery-indexer/internal/index/seatlists_test.go b/modules/mesh-delivery-indexer/internal/index/seatlists_test.go index d00f43b52..13e96182c 100644 --- a/modules/mesh-delivery-indexer/internal/index/seatlists_test.go +++ b/modules/mesh-delivery-indexer/internal/index/seatlists_test.go @@ -70,9 +70,10 @@ func (noLine) Subscribe(string, nats.MsgHandler) (*nats.Subscription, error) { return nil, errors.New("no bus in this test") } -// Design 47 H2 §814, §820 (H-A-441, H-A-443): the trunk's seat list is one object of seat-lists named by its sha256, in the -// order of its seats, kept at each new list with the newest two, and handed by the verb seat-list. -func TestTheSeatListIsOneObjectByItsDigest(t *testing.T) { +// seatListIsOneObjectByItsDigest is TestTheControlRecords' row "seat-list" (design 47 H2 §814, §820; H-A-441, H-A-443): the +// trunk's seat list is one object of seat-lists named by its sha256, in the order of its seats, kept at each new list with the +// newest two, and handed by the verb seat-list. A row, not a test of its own: the indexer's unit count does not rise (§819). +func seatListIsOneObjectByItsDigest(t *testing.T) { entry := func(seat, source, def string) *views.Entry { raw, _ := json.Marshal(SeatDefinitionEntry{Seat: seat, Source: source, Digest: "d-" + seat, Definition: json.RawMessage(def)}) return &views.Entry{Value: raw}