Skip to content
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

Refactor internal/gpx and internal/xlsx to abstract I/O #19

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

dolmen
Copy link
Contributor

@dolmen dolmen commented Jun 30, 2024

Use io.Reader instead of path string as argument to functions UnmarshalWith* in packages internal/gpx and internal/xlsx.

The guiding principle of this refactor is similar to #17.

dolmen added 2 commits June 30, 2024 22:58
Use io.Reader (instead of string path) in internal/gpx.
Use io.Reader (instead of string path) in internal/xlsx.
@muktihari muktihari self-requested a review July 1, 2024 07:57
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (1750cca) to head (52bb6b5).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #19   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          266       266           
=========================================
  Hits           266       266           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@muktihari muktihari left a comment

Choose a reason for hiding this comment

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

Nice idea to remove I/O from the benchmark so we can measure pure logic performance without I/O interference. I approve this PR.

@muktihari muktihari merged commit 540477c into muktihari:master Jul 1, 2024
1 check passed
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.

3 participants