github.com/djenriquez/nomad-1@v0.8.1/client/driver/testing.go (about) 1 package driver 2 3 import ( 4 "testing" 5 ) 6 7 // CheckForMockDriver is a test helper that ensures the mock driver is enabled. 8 // If not, it skips the current test. 9 func CheckForMockDriver(t *testing.T) { 10 if _, ok := BuiltinDrivers["mock_driver"]; !ok { 11 t.Skip(`test requires mock_driver; run with "-tags nomad_test"`) 12 } 13 }