MCPcopy
hub / github.com/go-gorm/gorm / tidbSkip

Function tidbSkip

tests/helper_test.go:270–274  ·  view source on GitHub ↗
(t *testing.T, reason string)

Source from the content-addressed store, hash-verified

268}
269
270func tidbSkip(t *testing.T, reason string) {
271 if isTiDB() {
272 t.Skipf("This test case skipped, because of TiDB '%s'", reason)
273 }
274}
275
276func isTiDB() bool {
277 return os.Getenv("GORM_DIALECT") == "tidb"

Calls 1

isTiDBFunction · 0.85

Tested by

no test coverage detected