Skip to content

refactor: Prefer cdilib methods over functions#1658

Merged
elezar merged 1 commit intoNVIDIA:mainfrom
elezar:cleanup-internal-functions
Feb 17, 2026
Merged

refactor: Prefer cdilib methods over functions#1658
elezar merged 1 commit intoNVIDIA:mainfrom
elezar:cleanup-internal-functions

Conversation

@elezar
Copy link
Member

@elezar elezar commented Feb 17, 2026

This change converts a number of internal-only functions to methods on the (*|nvcdi)lib types. This allows for the stored references to the logger and driver, for example, to be reused instead of passing these as arguments.

This change converts a number of internal-only functions to methods on
the (*|nvcdi)lib types. This allows for the stored references to the logger
and driver, for example, to be reused instead of passing these as arguments.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar merged commit 20886b4 into NVIDIA:main Feb 17, 2026
9 of 10 checks passed
@elezar elezar deleted the cleanup-internal-functions branch February 17, 2026 12:57
@coveralls
Copy link

Pull Request Test Coverage Report for Build 22099334452

Details

  • 5 of 40 (12.5%) changed or added relevant lines in 7 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.005%) to 38.959%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/nvcdi/management.go 0 1 0.0%
pkg/nvcdi/lib-wsl.go 0 2 0.0%
pkg/nvcdi/device-wsl.go 0 3 0.0%
pkg/nvcdi/driver-wsl.go 0 10 0.0%
pkg/nvcdi/driver-nvml.go 0 19 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/nvcdi/driver-nvml.go 1 0.0%
Totals Coverage Status
Change from base Build 22098422423: -0.005%
Covered Lines: 5697
Relevant Lines: 14623

💛 - Coveralls

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.

2 participants