-
Notifications
You must be signed in to change notification settings - Fork 1
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
Marshaling out #11
base: main
Are you sure you want to change the base?
Marshaling out #11
Conversation
Co-authored-by: Steven Hsieh <[email protected]> Signed-off-by: Chris Koch <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11 +/- ##
==========================================
- Coverage 85.73% 85.20% -0.54%
==========================================
Files 24 24
Lines 1514 1649 +135
==========================================
+ Hits 1298 1405 +107
- Misses 151 174 +23
- Partials 65 70 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Chris Koch <[email protected]>
Signed-off-by: Chris Koch <[email protected]>
Signed-off-by: Chris Koch <[email protected]>
Signed-off-by: Chris Koch <[email protected]>
Signed-off-by: Chris Koch <[email protected]>
Signed-off-by: Chris Koch <[email protected]>
We don't know how to read any of that right now anyway. Signed-off-by: Chris Koch <[email protected]>
Signed-off-by: Chris Koch <[email protected]>
t := smbios.Table{ | ||
Header: smbios.Header{ | ||
Type: val.Typ(), | ||
Handle: handle, |
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.
why we have to pass in handle
when we can directly obtain that from val.Handle
?
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 Length
of full info Type 1 table should be (4 + 4 + 16 + 3) -> 27.
This incorrect number won't fail the test but create new test failure while copying these values for the new test.
t.Run(tt.name, func(t *testing.T) { | ||
got, err := tt.table.MarshalBinary() | ||
if err != nil { | ||
t.Errorf("MarshalBinary returned error: %v", err) |
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.
Would it be better to use t.Fatalf
? since it doesn't make sense to proceed if function returns error.
No description provided.