github.com/quay/claircore@v1.5.28/test/periodic/periodic_test.go (about) 1 package periodic 2 3 import ( 4 "flag" 5 "net/http" 6 "os" 7 "testing" 8 9 "github.com/quay/claircore/libvuln/driver" 10 ) 11 12 var ( 13 pkgClient = &http.Client{ 14 Transport: &http.Transport{}, 15 } 16 17 fp driver.Fingerprint 18 ) 19 20 func TestMain(m *testing.M) { 21 enable := flag.Bool("enable", false, "enable tests") 22 flag.Parse() 23 if !*enable { 24 os.Exit(0) 25 } 26 os.Exit(m.Run()) 27 }