package stdio import ( "os" "path/filepath" "testing" ) // The checker runs gofmt, go vet at both levels' tags and both test levels by Go's convention, and fetches the // dependencies beside the change (novox/hq ADR 0529, ADR 0484 clause 4): no script of the repository's own runs // beside them. func TestTheRepositoryHoldsNoCheckScript(t *testing.T) { for _, rel := range []string{"../merge-check.sh", "merge-check.sh"} { if _, err := os.Stat(filepath.FromSlash(rel)); err == nil { t.Errorf("%s is back: the checker's levels run the tests", rel) } } }