summaryrefslogtreecommitdiffstats
path: root/pkg/integration/components/int_matcher.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-07-03 12:57:11 +1000
committerGitHub <noreply@github.com>2023-07-03 12:57:11 +1000
commit1a36cb9f3fbcf07353b8ae73e8b055d2e0e1d794 (patch)
treef486f588c72676322c341cb9aae209a02cbf9c61 /pkg/integration/components/int_matcher.go
parent2be4359e87bee6c737e19b02e4c7896fbc2ebf91 (diff)
parent5d982e1d70aa9a07645a5665130f2e499b7b56c8 (diff)
View filtering (#2680)
Diffstat (limited to 'pkg/integration/components/int_matcher.go')
-rw-r--r--pkg/integration/components/int_matcher.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/integration/components/int_matcher.go b/pkg/integration/components/int_matcher.go
index c80a60c85..4cfd0f958 100644
--- a/pkg/integration/components/int_matcher.go
+++ b/pkg/integration/components/int_matcher.go
@@ -10,9 +10,9 @@ type IntMatcher struct {
func (self *IntMatcher) EqualsInt(target int) *IntMatcher {
self.appendRule(matcherRule[int]{
- name: fmt.Sprintf("equals '%d'", target),
+ name: fmt.Sprintf("equals %d", target),
testFn: func(value int) (bool, string) {
- return value == target, fmt.Sprintf("Expected '%d' to equal '%d'", value, target)
+ return value == target, fmt.Sprintf("Expected %d to equal %d", value, target)
},
})
@@ -21,9 +21,9 @@ func (self *IntMatcher) EqualsInt(target int) *IntMatcher {
func (self *IntMatcher) GreaterThan(target int) *IntMatcher {
self.appendRule(matcherRule[int]{
- name: fmt.Sprintf("greater than '%d'", target),
+ name: fmt.Sprintf("greater than %d", target),
testFn: func(value int) (bool, string) {
- return value > target, fmt.Sprintf("Expected '%d' to greater than '%d'", value, target)
+ return value > target, fmt.Sprintf("Expected %d to greater than %d", value, target)
},
})
@@ -32,9 +32,9 @@ func (self *IntMatcher) GreaterThan(target int) *IntMatcher {
func (self *IntMatcher) LessThan(target int) *IntMatcher {
self.appendRule(matcherRule[int]{
- name: fmt.Sprintf("less than '%d'", target),
+ name: fmt.Sprintf("less than %d", target),
testFn: func(value int) (bool, string) {
- return value < target, fmt.Sprintf("Expected '%d' to less than '%d'", value, target)
+ return value < target, fmt.Sprintf("Expected %d to less than %d", value, target)
},
})