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

kubevirt / hyperconverged-cluster-operator / 6669611857
76%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2023 04:18PM UTC
Jobs 1
Files 47
Run time 3s
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

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

Jobs
ID Job ID Ran Files Coverage
1 6669611857.1 27 Oct 2023 04:18PM UTC 0
86.21
GitHub Action Run
Source Files on build 6669611857
Detailed source file information is not available for this build.
  • Back to Repo
  • 31ea3c42 on github
  • Prev Build on main (#6669150275)
  • Next Build on main (#6682711061)
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