From 299f43167c7c54bfdde001842e4dd5d1d86e28dd Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 11 Nov 2026 14:15:01 +0100 Subject: [PATCH] GIT12, REG1: the reservation check's test is a case of the holder's own test, so no module ends over its start count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds: design 47 G §381; test budget Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ --- modules/distribution/internal/holder/holder_test.go | 1 + modules/distribution/internal/holder/reserved_test.go | 2 +- modules/gitea/internal/packageseats/holder_test.go | 1 + modules/gitea/internal/packageseats/reserved_test.go | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/distribution/internal/holder/holder_test.go b/modules/distribution/internal/holder/holder_test.go index e0820d49f..c428e942b 100644 --- a/modules/distribution/internal/holder/holder_test.go +++ b/modules/distribution/internal/holder/holder_test.go @@ -223,6 +223,7 @@ const builder = "ace.mesh-build-go" // TestTheHolderOfTheTwoImageSeats holds design 51's holder cases at the unit level (CAT-D1, D2, D3, D3b, D4, D4b, D5): // one table or case per rule, the caller list and the store front's. func TestTheHolderOfTheTwoImageSeats(t *testing.T) { + t.Run("a publish is checked against the builder's reservation", reservedChecksAPublishAgainstTheReservation) blob := []byte(strings.Repeat("a", 3000)) part := Part{Digest: digestOf(blob), Size: int64(len(blob))} req := func(id string) PublishRequest { diff --git a/modules/distribution/internal/holder/reserved_test.go b/modules/distribution/internal/holder/reserved_test.go index 312bf4afc..faa32b074 100644 --- a/modules/distribution/internal/holder/reserved_test.go +++ b/modules/distribution/internal/holder/reserved_test.go @@ -9,7 +9,7 @@ import ( // A publish is checked against the builder's reservation by the seat mesh-builds' verb reserved, asked with the package's name // (design 47 §381, §478). -func TestReservedChecksAPublishAgainstTheReservation(t *testing.T) { +func reservedChecksAPublishAgainstTheReservation(t *testing.T) { for _, c := range []struct { name string answer string diff --git a/modules/gitea/internal/packageseats/holder_test.go b/modules/gitea/internal/packageseats/holder_test.go index 0495e041a..029810f47 100644 --- a/modules/gitea/internal/packageseats/holder_test.go +++ b/modules/gitea/internal/packageseats/holder_test.go @@ -119,6 +119,7 @@ const goBuild, nodeBuild = "ace.mesh-build-go", "ace.mesh-build-node" // file comes in parts, is checked against the builder's numbering and its digest, and is uploaded with the forge's own // write side; the outcome is said on the seat's events. func TestTheForgeHoldsBothPackageSeats(t *testing.T) { + t.Run("a publish is checked against the builder's reservation", reservedChecksAPublishAgainstTheReservation) file := []byte("a package's tarball") t.Run("a publish in parts is uploaded and said published", func(t *testing.T) { for _, seat := range []string{NpmSeat, GoSeat} { diff --git a/modules/gitea/internal/packageseats/reserved_test.go b/modules/gitea/internal/packageseats/reserved_test.go index b5ea18483..dff3f891f 100644 --- a/modules/gitea/internal/packageseats/reserved_test.go +++ b/modules/gitea/internal/packageseats/reserved_test.go @@ -9,7 +9,7 @@ import ( // A publish is checked against the builder's reservation by the seat mesh-builds' verb reserved, asked with the package's name // (design 47 §381, §478). -func TestReservedChecksAPublishAgainstTheReservation(t *testing.T) { +func reservedChecksAPublishAgainstTheReservation(t *testing.T) { for _, c := range []struct { name string answer string