GIT12, REG1: the reservation check's test is a case of the holder's own test, so no module ends over its start count
Builds: design 47 G §381; test budget Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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} {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user