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

kubevirt / hyperconverged-cluster-operator / 20004527574
76%

Build:
DEFAULT BRANCH: main
Ran 07 Dec 2025 01:00PM UTC
Jobs 1
Files 110
Run time 1min
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

07 Dec 2025 12:54PM UTC coverage: 76.718% (-0.2%) from 76.921%
20004527574

push

github

web-flow
Split the own-resources logic from ClusterInfo interface (#3892)

* Introduce new fake ClusterInfo

Add a new ClusterInfo mock, with several benefits:
1. new optional API, to be flex and math the specific test.
2. have it's own package, to ease importing it, and avoid cycle import
   errors.

The new mock will slowly replace the curewnt one, until we could remove
it. Currently the API is very limited. we'll add more options when
needed, in each the specific test will start using it.

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

* Split the own-resources logic from ClusterInfo

Introduce the new pkg/ownreference package, with the logic of the
ClusterInfo own-reference logic, to later take it out from the
ClusterInfo implementation and API.

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

* add mocks for the ownresources package

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

* use the ownreference package instead of ClusterInfo

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

* cleanup ClusterInfo

Remove the own-reference methods from the the ClusterInfo interface and
implementations.

Remove the own-reference logic from the util package.

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

---------

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

171 of 263 new or added lines in 11 files covered. (65.02%)

7 existing lines in 1 file now uncovered.

8083 of 10536 relevant lines covered (76.72%)

1.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
68.75
pkg/ownresources/fake/fake_own_resources.go
5
54.55
pkg/ownresources/fake/fake_resources.go
39
29.09
pkg/util/fake/clusterinfo/clusterinfo_mock.go
43
70.95
pkg/internal/ownresources/own_resources.go

Uncovered Existing Lines

Lines Coverage ∆ File
7
70.3
-4.24% pkg/util/util.go
Jobs
ID Job ID Ran Files Coverage
1 Unit - 20004527574.1 07 Dec 2025 01:00PM UTC 110
76.72
GitHub Action Run
Source Files on build 20004527574
  • Tree
  • List 110
  • Changed 8
  • Source Changed 7
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20004527574
  • cae67e75 on github
  • Prev Build on main (#19989154794)
  • Next Build on main (#20025995024)
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