Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HttpPort = flag.String("httpPort", os.Getenv("PORT"), "HTTP port for the server.") HeartbeatDuration = flag.Duration("subscribeHeartbeatDuration", time.Second*10, "Heartbeat interval for HTTP stream subscriptions.") )
View Source
var IsEmptyString Checker = &isEmptyStringChecker{ &CheckerInfo{Name: "IsEmptyString", Params: []string{"value"}}, }
The IsEmptyString checker tests whether the obtained string value equals "".
For example:
c.Assert("", IsEmptyString)
View Source
var IsFalse Checker = &isFalseChecker{ &CheckerInfo{Name: "IsFalse", Params: []string{"value"}}, }
The IsFalse checker tests whether the obtained value is false. It's an alias for Not(IsTrue).
For example:
c.Assert(err, IsFalse)
View Source
var IsTrue Checker = &isTrueChecker{ &CheckerInfo{Name: "IsTrue", Params: []string{"value"}}, }
The IsTrue checker tests whether the obtained value is true.
For example:
c.Assert(err, IsTrue)
Functions ¶
func CountWithData ¶
func GetNullByte ¶
func GetNullByte() []byte
func TimeoutFunc ¶
Types ¶
type StringSliceUtil ¶
type StringSliceUtil []string
func (StringSliceUtil) Contains ¶
func (s StringSliceUtil) Contains(check string) bool
Click to show internal directories.
Click to hide internal directories.