github.com/dop251/modtools@v0.0.0-20220314120634-3b2fc95d1790/cmd/check_test.go (about) 1 package cmd 2 3 import ( 4 "os" 5 "testing" 6 ) 7 8 func Test(t *testing.T) { 9 err := os.Chdir("../testdata/testmod") 10 if err != nil { 11 t.Fatal(err) 12 } 13 _, err = checkDeps(false) 14 if err != nil { 15 t.Fatal(err) 16 } 17 }