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

test(loaders): Add test for load_deletions #127 #179

Merged
merged 6 commits into from
Nov 7, 2023

Conversation

madhavmk
Copy link
Collaborator

@madhavmk madhavmk commented Oct 30, 2023

  • Add new unittest test_load_deletions() to increase loaders.py coverage.

@lsetiawan lsetiawan linked an issue Oct 30, 2023 that may be closed by this pull request
@madhavmk madhavmk changed the title test(loaders): Add test for load_travel_times #127 (Draft PR) test(loaders): Add test for load_deletions #127 Nov 5, 2023
Copy link

codecov bot commented Nov 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d0f2bd0) 43.84% compared to head (21e43b3) 46.83%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #179      +/-   ##
==========================================
+ Coverage   43.84%   46.83%   +2.98%     
==========================================
  Files          16       16              
  Lines         837      837              
==========================================
+ Hits          367      392      +25     
+ Misses        470      445      -25     

see 1 file with indirect coverage changes

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

@madhavmk madhavmk self-assigned this Nov 5, 2023
@madhavmk
Copy link
Collaborator Author

madhavmk commented Nov 5, 2023

@lsetiawan This PR is ready for review.

@lsetiawan
Copy link
Member

lsetiawan commented Nov 6, 2023

Thanks @madhavmk for this! This is great. However, you're missing the file_path case: https://app.codecov.io/gh/uw-ssec/offshore-geodesy/pull/179/blob/src/gnatss/loaders.py#L289. This is when the program is given the old deletns.dat file:

deletions:
    path: ./tests/data/2022/NCL1/deletns.dat

@madhavmk
Copy link
Collaborator Author

madhavmk commented Nov 6, 2023

Thanks @madhavmk for this! This is great. However, you're missing the file_path case: https://app.codecov.io/gh/uw-ssec/offshore-geodesy/pull/179/blob/src/gnatss/loaders.py#L289. This is when the program is given the old deletns.dat file:

deletions:
    path: ./tests/data/2022/NCL1/deletns.dat

Right. I purposely skipped this testcase, as you mentioned we do not support it moving forward. Do you still recommend me to create a testcase for this?

@lsetiawan
Copy link
Member

Right. I purposely skipped this testcase, as you mentioned we do not support it moving forward. Do you still recommend me to create a testcase for this?

That makes sense, we won't support it, but for now, let's test for this. It shouldn't take too much lift and this ensures that the program can be compared with an old delete file.

@madhavmk
Copy link
Collaborator Author

madhavmk commented Nov 7, 2023

Right. I purposely skipped this testcase, as you mentioned we do not support it moving forward. Do you still recommend me to create a testcase for this?

That makes sense, we won't support it, but for now, let's test for this. It shouldn't take too much lift and this ensures that the program can be compared with an old delete file.

Completed!

src/gnatss/loaders.py Outdated Show resolved Hide resolved
@lsetiawan
Copy link
Member

This is now ready to merge once the small change I made is passing. Thanks for this!

@lsetiawan lsetiawan removed the request for review from carlosgjs November 7, 2023 18:32
@lsetiawan lsetiawan merged commit aa2fec0 into seafloor-geodesy:main Nov 7, 2023
5 checks passed
@madhavmk madhavmk deleted the issue_127 branch May 14, 2024 01:57
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.

Add test for load_deletions
2 participants