hs-test: check for missing output in nginx tests
[vpp.git] / extras / hs-test / hst_suite.go
index 286536d..9cd9aea 100644 (file)
@@ -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...)