File: should.go

package info (click to toggle)
golang-github-smartystreets-assertions 1.10.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 580 kB
  • sloc: python: 80; makefile: 41; sh: 15
file content (70 lines) | stat: -rw-r--r-- 3,600 bytes parent folder | download | duplicates (2)
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
// package should is simply a rewording of the assertion
// functions in the assertions package.
package should

import "github.com/smartystreets/assertions"

var (
	AlmostEqual            = assertions.ShouldAlmostEqual
	BeBetween              = assertions.ShouldBeBetween
	BeBetweenOrEqual       = assertions.ShouldBeBetweenOrEqual
	BeBlank                = assertions.ShouldBeBlank
	BeChronological        = assertions.ShouldBeChronological
	BeEmpty                = assertions.ShouldBeEmpty
	BeError                = assertions.ShouldBeError
	BeFalse                = assertions.ShouldBeFalse
	BeGreaterThan          = assertions.ShouldBeGreaterThan
	BeGreaterThanOrEqualTo = assertions.ShouldBeGreaterThanOrEqualTo
	BeIn                   = assertions.ShouldBeIn
	BeLessThan             = assertions.ShouldBeLessThan
	BeLessThanOrEqualTo    = assertions.ShouldBeLessThanOrEqualTo
	BeNil                  = assertions.ShouldBeNil
	BeTrue                 = assertions.ShouldBeTrue
	BeZeroValue            = assertions.ShouldBeZeroValue
	Contain                = assertions.ShouldContain
	ContainKey             = assertions.ShouldContainKey
	ContainSubstring       = assertions.ShouldContainSubstring
	EndWith                = assertions.ShouldEndWith
	Equal                  = assertions.ShouldEqual
	EqualJSON              = assertions.ShouldEqualJSON
	EqualTrimSpace         = assertions.ShouldEqualTrimSpace
	EqualWithout           = assertions.ShouldEqualWithout
	HappenAfter            = assertions.ShouldHappenAfter
	HappenBefore           = assertions.ShouldHappenBefore
	HappenBetween          = assertions.ShouldHappenBetween
	HappenOnOrAfter        = assertions.ShouldHappenOnOrAfter
	HappenOnOrBefore       = assertions.ShouldHappenOnOrBefore
	HappenOnOrBetween      = assertions.ShouldHappenOnOrBetween
	HappenWithin           = assertions.ShouldHappenWithin
	HaveLength             = assertions.ShouldHaveLength
	HaveSameTypeAs         = assertions.ShouldHaveSameTypeAs
	Implement              = assertions.ShouldImplement
	NotAlmostEqual         = assertions.ShouldNotAlmostEqual
	NotBeBetween           = assertions.ShouldNotBeBetween
	NotBeBetweenOrEqual    = assertions.ShouldNotBeBetweenOrEqual
	NotBeBlank             = assertions.ShouldNotBeBlank
	NotBeChronological     = assertions.ShouldNotBeChronological
	NotBeEmpty             = assertions.ShouldNotBeEmpty
	NotBeIn                = assertions.ShouldNotBeIn
	NotBeNil               = assertions.ShouldNotBeNil
	NotBeZeroValue         = assertions.ShouldNotBeZeroValue
	NotContain             = assertions.ShouldNotContain
	NotContainKey          = assertions.ShouldNotContainKey
	NotContainSubstring    = assertions.ShouldNotContainSubstring
	NotEndWith             = assertions.ShouldNotEndWith
	NotEqual               = assertions.ShouldNotEqual
	NotHappenOnOrBetween   = assertions.ShouldNotHappenOnOrBetween
	NotHappenWithin        = assertions.ShouldNotHappenWithin
	NotHaveSameTypeAs      = assertions.ShouldNotHaveSameTypeAs
	NotImplement           = assertions.ShouldNotImplement
	NotPanic               = assertions.ShouldNotPanic
	NotPanicWith           = assertions.ShouldNotPanicWith
	NotPointTo             = assertions.ShouldNotPointTo
	NotResemble            = assertions.ShouldNotResemble
	NotStartWith           = assertions.ShouldNotStartWith
	Panic                  = assertions.ShouldPanic
	PanicWith              = assertions.ShouldPanicWith
	PointTo                = assertions.ShouldPointTo
	Resemble               = assertions.ShouldResemble
	StartWith              = assertions.ShouldStartWith
)