github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/internal/test/suite/interfaces.go (about) 1 package suite 2 3 import "testing" 4 5 // SetupAllSuite has a SetupSuite method, which will run before the 6 // tests in the suite are run. 7 type SetupAllSuite interface { 8 SetUpSuite(t *testing.T) 9 } 10 11 // SetupTestSuite has a SetupTest method, which will run before each 12 // test in the suite. 13 type SetupTestSuite interface { 14 SetUpTest(t *testing.T) 15 } 16 17 // TearDownAllSuite has a TearDownSuite method, which will run after 18 // all the tests in the suite have been run. 19 type TearDownAllSuite interface { 20 TearDownSuite(t *testing.T) 21 } 22 23 // TearDownTestSuite has a TearDownTest method, which will run after 24 // each test in the suite. 25 type TearDownTestSuite interface { 26 TearDownTest(t *testing.T) 27 } 28 29 // TimeoutTestSuite has a OnTimeout method, which will run after 30 // a single test times out after a period specified by -timeout flag. 31 type TimeoutTestSuite interface { 32 OnTimeout() 33 }