Skip to content

Some small UT additions#443

Merged
donatwork merged 13 commits into
usr/atye/multi-tenantfrom
usr/dkhan/ut-additions
Aug 11, 2025
Merged

Some small UT additions#443
donatwork merged 13 commits into
usr/atye/multi-tenantfrom
usr/dkhan/ut-additions

Conversation

@donatwork

@donatwork donatwork commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

Description

Increase coverage of mount.go. Also some code cleanup to remove warnings flagged by static analysis.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

Comment thread service/node_test.go
Comment thread service/controller.go
// return the createVolume response with actual array volume name
exportPath := path
if export != nil && export.Paths != nil {
if export.Paths != nil {

@alikdell alikdell Aug 11, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing export nil check? That check seems helpful for unexpected nil value

@donatwork donatwork Aug 11, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is within a block that ensures exports is never nil.

@donatwork donatwork merged commit 8504a1c into usr/atye/multi-tenant Aug 11, 2025
5 of 6 checks passed
@donatwork donatwork deleted the usr/dkhan/ut-additions branch August 11, 2025 13:27
hoppea2 pushed a commit that referenced this pull request Aug 11, 2025
OliverChen557 pushed a commit that referenced this pull request Aug 12, 2025
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.

4 participants