Skip to content

pkg/dt: create idiomatic New(), minimize Linux special-ness#2561

Merged
rminnich merged 1 commit intou-root:mainfrom
rminnich:dtf
Nov 15, 2022
Merged

pkg/dt: create idiomatic New(), minimize Linux special-ness#2561
rminnich merged 1 commit intou-root:mainfrom
rminnich:dtf

Conversation

@rminnich
Copy link
Copy Markdown
Member

The New takes a variadic of FDTReader functions.

The Linux code now supplies 2 kinds: one for
io.ReaderAt and another for filenames.

The tests now use these. No more racing with changes to a package-level variable.

Signed-off-by: Ronald G. Minnich [email protected]

The New takes a variadic of FDTReader functions.

The Linux code now supplies 2 kinds: one for
io.ReaderAt and another for filenames.

The tests now use these. No more racing with changes to a
package-level variable.

Signed-off-by: Ronald G. Minnich <[email protected]>
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 15, 2022

Codecov Report

Base: 73.67% // Head: 73.69% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (2ca7c83) compared to base (a51ebc2).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2561      +/-   ##
==========================================
+ Coverage   73.67%   73.69%   +0.01%     
==========================================
  Files         406      406              
  Lines       41282    41299      +17     
==========================================
+ Hits        30416    30434      +18     
+ Misses      10866    10865       -1     
Impacted Files Coverage Δ
pkg/dt/fdt.go 50.84% <100.00%> (+4.30%) ⬆️
pkg/dt/fdt_linux.go 100.00% <100.00%> (ø)
cmds/core/mv/mv.go 79.54% <0.00%> (+2.27%) ⬆️

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rminnich rminnich added the Awaiting reviewer Waiting for a reviewer. label Nov 15, 2022
@rminnich rminnich merged commit 18cc104 into u-root:main Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Awaiting reviewer Waiting for a reviewer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants