package main import ( "encoding/json" "os" "testing" ) // The readings' layout is restic's own package, published by its series for the readers to take (ADR 0634 ยง4). func TestTheReadingsLayoutIsAPublishedPackageOfThisModule(t *testing.T) { raw, err := os.ReadFile("../../module.json") if err != nil { t.Fatal(err) } var m struct { Build struct { Artifacts []struct { Name, Kind, Series string Paths []string } `json:"artifacts"` } `json:"build"` } if err := json.Unmarshal(raw, &m); err != nil { t.Fatal(err) } // Issue 1966's bootstrap: the package artifact backupgood is out of the manifest until the new builder runs; the follow-up // puts this check back. }