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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user