I6 fix: the seat-list's unit test is a row of TestTheControlRecords

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)
This commit is contained in:
2026-11-22 03:22:39 +01:00
parent abfe37e690
commit a63f4e001b
2 changed files with 5 additions and 3 deletions
@@ -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.
@@ -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}