mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
40 lines
586 B
Go
40 lines
586 B
Go
package framework
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// Named exists simply to make sure the Name() method was implemented since it
|
|
// is the only required method implementation of a test case
|
|
type Named interface {
|
|
Name() string
|
|
}
|
|
|
|
type TestCase interface {
|
|
Named
|
|
internalTestCase
|
|
|
|
T() *testing.T
|
|
SetT(*testing.T)
|
|
}
|
|
|
|
type internalTestCase interface {
|
|
setClusterInfo(*ClusterInfo)
|
|
}
|
|
|
|
type BeforeAllSteps interface {
|
|
BeforeAllSteps()
|
|
}
|
|
|
|
type AfterAllSteps interface {
|
|
AfterAllSteps()
|
|
}
|
|
|
|
type BeforeEachStep interface {
|
|
BeforeEachStep()
|
|
}
|
|
|
|
type AfterEachStep interface {
|
|
AfterEachStep()
|
|
}
|