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

Improve NullArgumentTest to cover GetShortestPath methods #475

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

viceroypenguin
Copy link
Owner

@viceroypenguin viceroypenguin commented Jun 23, 2023

This PR addresses the gap in the NullArgumentTest, where it does not test GetShortestPath methods. It does so by changing the Func<> passed in to return an empty enumerable rather than null.

This PR also adds a null-reference check for the returned value from the getNeighbors() call.

Fixes #195

@viceroypenguin viceroypenguin added this to the 5.2.0 milestone Jun 23, 2023
@codecov
Copy link

codecov bot commented Jun 23, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.39 🎉

Comparison is base (89ad40e) 91.43% compared to head (e744aa6) 91.82%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #475      +/-   ##
==========================================
+ Coverage   91.43%   91.82%   +0.39%     
==========================================
  Files         245      245              
  Lines        7949     7954       +5     
  Branches     1611     1611              
==========================================
+ Hits         7268     7304      +36     
+ Misses        463      436      -27     
+ Partials      218      214       -4     
Impacted Files Coverage Δ
Source/SuperLinq/GetShortestPath.cs 98.14% <100.00%> (+14.73%) ⬆️

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

@viceroypenguin viceroypenguin merged commit b8350cd into master Jun 23, 2023
3 checks passed
@viceroypenguin viceroypenguin deleted the getshortestpath-null branch June 23, 2023 14:39
This pull request was closed.
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.

Address NullArgumentTest for GetShortestPath and family
1 participant