-
Notifications
You must be signed in to change notification settings - Fork 89
Add unit test for addr.go #1105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## devel #1105 +/- ##
==========================================
+ Coverage 42.29% 42.98% +0.68%
==========================================
Files 44 47 +3
Lines 6850 7436 +586
==========================================
+ Hits 2897 3196 +299
- Misses 3710 3998 +288
+ Partials 243 242 -1
... and 8 files with indirect coverage changes
|
pkg/netceptor/addr.go
Outdated
network string | ||
node string | ||
service string | ||
NetworkStr string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this, can you quickly run through why the vars need to be exported please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The vars need to be exported in order for netceptor_test to create an Addr with set vars for this test. The vars need to be set so that Network() and String() return values
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Add unit test for addr.go
Addr struct properties need to be public in order to create a test Addr struct outside of netceptor for this test.