mesh/delivery superseded: a newer head of the same pull request
mesh/check failed: g14: novox/mesh-catalog#464: checks/health/go.mod names mesh-sdk a9560890ee26, which is neither on mesh-sdk's trunk nor the group's…
33 lines
964 B
Go
33 lines
964 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.novox.be/novox/mesh-catalog/checks/trunk"
|
|
)
|
|
|
|
// The script's comparison of this list with the trunk's (novox/hq ADR 0529 clause 2): the list of modules keeping file text inline
|
|
// gains none the trunk's copy at the merge base does not hold. The catalogue itself is judged against the list by
|
|
// TestTheCatalogueKeepsFileTextInlineOnlyWhereListed. Skipped, and said, where no trunk is beside.
|
|
func TestTheInlineListHoldsNoModuleTheTrunksDoesNot(t *testing.T) {
|
|
path, ok := trunk.Copy(t, "checks/templates/inline")
|
|
found, err := Check("../..")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
listed, err := Listed(listFile)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
base := seed
|
|
if ok {
|
|
if base, err = Listed(path); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|
|
_, _, added := Judge(found, listed, base)
|
|
for _, m := range added {
|
|
t.Errorf("checks/templates/inline gains %s, which the trunk's copy does not hold: the list only shrinks", m)
|
|
}
|
|
}
|