Test that each shipped module renders beside the modules it reads, that the test's module list matches data.Modules(), and that a data path's manifest and an indexed one each name what they read

This commit is contained in:
2026-10-10 13:16:59 +02:00
committed by Lillem4n
parent d79be8b50a
commit e8b7d95559
5 changed files with 66 additions and 57 deletions
-13
View File
@@ -24,8 +24,6 @@ type node interface{ isNode() }
type folder struct {
children map[string]node
unloaded map[string]*indexed
// reads is, for each category, the modules its source's manifest names it reading by default.
reads map[string][]string
}
func (*folder) isNode() {}
@@ -35,17 +33,6 @@ func (g *folder) put(name string, n node) {
delete(g.unloaded, name)
}
func (g *folder) setReads(name string, reads []string) {
if len(reads) == 0 {
delete(g.reads, name)
return
}
if g.reads == nil {
g.reads = map[string][]string{}
}
g.reads[name] = reads
}
func (g *folder) putUnloaded(name string, x *indexed) {
delete(g.children, name)
if g.unloaded == nil {