• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubevirt / hyperconverged-cluster-operator / 6669611857 / 1
76%
main: 76%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2023 04:18PM UTC
Files 47
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Oct 2023 04:10PM UTC coverage: 86.206%. Remained the same
6669611857.1

push

github

web-flow
Simplify error handling in tests (#2578)

gomega v1.29.0 improved the MatchError matcher so it can also get a
function to check the error (e.g. `errors.IsNotFound`). This change
allow simpify the error assertions in tests.

This PR uses changes all the place where tests check the nature of
errors, and simplify them.

for example, instead of:
```go
Expect(err).To(HaveOccurred())
Expect(errors.IsNotFound(err)).To(BeTrue())
```

We can use simpler version, e.g.:
```go
Expect(err).To(MatchError(errors.IsNotFound, "not found error"))
```

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>

5256 of 6097 relevant lines covered (86.21%)

0.96 hits per line

Source Files on job 6669611857.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6669611857
  • 31ea3c42 on github
  • Prev Job for on main (#6669150275.1)
  • Next Job for on main (#6682711061.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc