1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
// package should is simply a rewording of the assertion
// functions in the assertions package.
package should
import "github.com/smartystreets/assertions"
var (
Equal = assertions.ShouldEqual
NotEqual = assertions.ShouldNotEqual
AlmostEqual = assertions.ShouldAlmostEqual
NotAlmostEqual = assertions.ShouldNotAlmostEqual
Resemble = assertions.ShouldResemble
NotResemble = assertions.ShouldNotResemble
PointTo = assertions.ShouldPointTo
NotPointTo = assertions.ShouldNotPointTo
BeNil = assertions.ShouldBeNil
NotBeNil = assertions.ShouldNotBeNil
BeTrue = assertions.ShouldBeTrue
BeFalse = assertions.ShouldBeFalse
BeZeroValue = assertions.ShouldBeZeroValue
BeGreaterThan = assertions.ShouldBeGreaterThan
BeGreaterThanOrEqualTo = assertions.ShouldBeGreaterThanOrEqualTo
BeLessThan = assertions.ShouldBeLessThan
BeLessThanOrEqualTo = assertions.ShouldBeLessThanOrEqualTo
BeBetween = assertions.ShouldBeBetween
NotBeBetween = assertions.ShouldNotBeBetween
BeBetweenOrEqual = assertions.ShouldBeBetweenOrEqual
NotBeBetweenOrEqual = assertions.ShouldNotBeBetweenOrEqual
Contain = assertions.ShouldContain
NotContain = assertions.ShouldNotContain
ContainKey = assertions.ShouldContainKey
NotContainKey = assertions.ShouldNotContainKey
BeIn = assertions.ShouldBeIn
NotBeIn = assertions.ShouldNotBeIn
BeEmpty = assertions.ShouldBeEmpty
NotBeEmpty = assertions.ShouldNotBeEmpty
HaveLength = assertions.ShouldHaveLength
StartWith = assertions.ShouldStartWith
NotStartWith = assertions.ShouldNotStartWith
EndWith = assertions.ShouldEndWith
NotEndWith = assertions.ShouldNotEndWith
BeBlank = assertions.ShouldBeBlank
NotBeBlank = assertions.ShouldNotBeBlank
ContainSubstring = assertions.ShouldContainSubstring
NotContainSubstring = assertions.ShouldNotContainSubstring
EqualWithout = assertions.ShouldEqualWithout
EqualTrimSpace = assertions.ShouldEqualTrimSpace
Panic = assertions.ShouldPanic
NotPanic = assertions.ShouldNotPanic
PanicWith = assertions.ShouldPanicWith
NotPanicWith = assertions.ShouldNotPanicWith
HaveSameTypeAs = assertions.ShouldHaveSameTypeAs
NotHaveSameTypeAs = assertions.ShouldNotHaveSameTypeAs
Implement = assertions.ShouldImplement
NotImplement = assertions.ShouldNotImplement
HappenBefore = assertions.ShouldHappenBefore
HappenOnOrBefore = assertions.ShouldHappenOnOrBefore
HappenAfter = assertions.ShouldHappenAfter
HappenOnOrAfter = assertions.ShouldHappenOnOrAfter
HappenBetween = assertions.ShouldHappenBetween
HappenOnOrBetween = assertions.ShouldHappenOnOrBetween
NotHappenOnOrBetween = assertions.ShouldNotHappenOnOrBetween
HappenWithin = assertions.ShouldHappenWithin
NotHappenWithin = assertions.ShouldNotHappenWithin
BeChronological = assertions.ShouldBeChronological
)
|