Skip to content

Placement: Only export externally used functions, fix ListAllocations#248

Open
fwiesel wants to merge 1 commit intomainfrom
placement-tests
Open

Placement: Only export externally used functions, fix ListAllocations#248
fwiesel wants to merge 1 commit intomainfrom
placement-tests

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Feb 26, 2026

ListAllocations (now listAllocations) didn't read the body, so we never had any allocations. Add some unit-test to ensure that is working.

ListAllocations (now listAllocations) didn't read the body, so we
never had any allocations.  Add some unit-test to ensure that is
working.
@github-actions
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/openstack 71.77% (+18.55%) 🎉

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/openstack/placement.go 88.89% (+51.11%) 45 40 (+23) 5 (-23) 🌟

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/openstack/placement_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/openstack/suite_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant