Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Test refactor #97

Merged
merged 2 commits into from
Jan 12, 2023
Merged

Test refactor #97

merged 2 commits into from
Jan 12, 2023

Conversation

PWAlessi
Copy link

Refactor unit tests

Signed-off-by: patrick-alessi <patrick.alessi@dell.com>
Signed-off-by: patrick-alessi <patrick.alessi@dell.com>
@PWAlessi PWAlessi requested a review from a team as a code owner January 12, 2023 19:00
@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Merging #97 (826aa0c) into main (ea76149) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #97   +/-   ##
=======================================
  Coverage   48.93%   48.93%           
=======================================
  Files           5        5           
  Lines        1216     1216           
=======================================
  Hits          595      595           
  Misses        602      602           
  Partials       19       19           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@glimchb glimchb left a comment

Choose a reason for hiding this comment

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

@PWAlessi we have 4 common functions in tests:

  • dialer()
  • spdkMockServer()
  • startSpdkMockupServer()
  • startGrpcMockupServer()

is there are standard way to handle it in golang ? create a new file for common UT things... ?

@glimchb glimchb merged commit d251831 into opiproject:main Jan 12, 2023
@PWAlessi
Copy link
Author

PWAlessi commented Jan 12, 2023 via email

@glimchb
Copy link
Member

glimchb commented Jan 12, 2023

Yes, I will refactor

cool, thanks!

and we should probably repeat that for https://github.com/opiproject/opi-marvell-bridge and https://github.com/opiproject/opi-nvidia-bridge as well

I don't like how much dup we have between repos... but not sure there is anything we can do...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants