Node answers the type-check as lint always, unit where a package has a test script and integration where it has test:integration, kept in detected-steps by fingerprint as the Go module keeps it; the image answers none. The manifests serve it. The step ask's end (step-ended) of BLD7 and BLD8 waits for BLD3 and the build-step package of mesh-delivery-sdk. Builds: design 47 G §22, §307, §326, §328 Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
25 lines
772 B
Go
25 lines
772 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
// Design 47 G §22, §328 (BLD8): the verb steps is served and answers none for an image.
|
|
func TestTheStepsVerbAnswersNoStepForAnImage(t *testing.T) {
|
|
served := false
|
|
for _, tool := range (&Module{}).SeatTools(nil) {
|
|
if tool.Name == Seat+".steps" {
|
|
served = true
|
|
got, err := tool.Run(map[string]any{"module": "m", "artifact": "m:server", "fingerprint": "fp"})
|
|
a, ok := got.(StepsAnswer)
|
|
if err != nil || !ok || a.Artifact != "m:server" || a.Steps == nil || len(a.Steps) != 0 {
|
|
t.Errorf("steps = %+v (%v)", got, err)
|
|
}
|
|
if _, err := tool.Run(map[string]any{"module": "m"}); err == nil {
|
|
t.Error("an ask with no artifact was answered")
|
|
}
|
|
}
|
|
}
|
|
if !served {
|
|
t.Fatal("the module serves no verb steps")
|
|
}
|
|
}
|