github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/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 }