Name every kind of an untaken module's resources in the adoption envelope, not only files and containers (hq ADR 0103)

This commit is contained in:
2026-09-22 18:03:03 +02:00
parent c91fe1a6eb
commit 41c300eae0
2 changed files with 12 additions and 10 deletions
+4 -2
View File
@@ -84,8 +84,10 @@ func TestAnAdoptedDeclarationCarriesItsModeAndWhatWasTaken(t *testing.T) {
t.Fatal("an adopted node's declaration does not say it is adopted")
}
untaken := declared.Adoption.Untaken["hello-web"]
if !reflect.DeepEqual(untaken, []string{"hello-web.page", "hello-web.server"}) {
t.Fatalf("hello-web's files and containers are not named untaken: %v", declared.Adoption)
// Every kind — its directory too (novox/hq ADR 0103).
if !reflect.DeepEqual(untaken, []string{"hello-web.page", "hello-web.server",
"hello-web.served"}) {
t.Fatalf("hello-web's resources are not all named untaken: %v", declared.Adoption)
}
if len(declared.Adoption.Taken) != 0 {
t.Fatalf("nothing was taken, and the declaration says %v", declared.Adoption.Taken)