Files
mesh-sdk/go/no_check_script_test.go
T
jschoubben 232ded26ea Delete both merge-check scripts; the type check runs before npm test (issue 1295, S8; ADR 0529)
gofmt and vet are the Go build module's, the unit bound the checker's.
2026-10-23 16:10:46 +02:00

19 lines
568 B
Go

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)
}
}
}