mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-10-19 05:39:51 +00:00
d300da19b7
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
27 lines
706 B
Go
27 lines
706 B
Go
package types
|
|
|
|
type TWithHelper interface {
|
|
Helper()
|
|
}
|
|
|
|
type GomegaFailHandler func(message string, callerSkip ...int)
|
|
|
|
type GomegaFailWrapper struct {
|
|
Fail GomegaFailHandler
|
|
TWithHelper TWithHelper
|
|
}
|
|
|
|
//A simple *testing.T interface wrapper
|
|
type GomegaTestingT interface {
|
|
Fatalf(format string, args ...interface{})
|
|
}
|
|
|
|
//All Gomega matchers must implement the GomegaMatcher interface
|
|
//
|
|
//For details on writing custom matchers, check out: http://onsi.github.io/gomega/#adding-your-own-matchers
|
|
type GomegaMatcher interface {
|
|
Match(actual interface{}) (success bool, err error)
|
|
FailureMessage(actual interface{}) (message string)
|
|
NegatedFailureMessage(actual interface{}) (message string)
|
|
}
|