Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
hs-test: check for missing output in nginx tests
[vpp.git]
/
extras
/
hs-test
/
hst_suite.go
diff --git
a/extras/hs-test/hst_suite.go
b/extras/hs-test/hst_suite.go
index
286536d
..
9cd9aea
100644
(file)
--- a/
extras/hs-test/hst_suite.go
+++ b/
extras/hs-test/hst_suite.go
@@
-105,6
+105,12
@@
func (s *HstSuite) assertNotContains(testString, contains interface{}, msgAndArg
}
}
+func (s *HstSuite) assertNotEmpty(object interface{}, msgAndArgs ...interface{}) {
+ if !assert.NotEmpty(s.T(), object, msgAndArgs...) {
+ s.hstFail()
+ }
+}
+
func (s *HstSuite) log(args ...any) {
if IsVerbose() {
s.T().Log(args...)