-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Showing that the current version fails the null_pack_color_test.ts #4351
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4351 +/- ##
===========================================
- Coverage 87.85% 64.04% -23.82%
===========================================
Files 246 246
Lines 33372 33372
Branches 2182 1514 -668
===========================================
- Hits 29318 21372 -7946
- Misses 3064 11162 +8098
+ Partials 990 838 -152 ☔ View full report in Codecov by Sentry. |
Thanks for taking the time to open this PR! |
So just so I understand: even though I know that this prevents the rendering from breaking, I should look at other approaches that solve this issue in a more elegant way? I assume this means I should sift through the call stack and look for where the logic went wrong at a high level, instead of focusing on this very granular issue. |
Yes please. Returning a color when no color is requested can be cumbersome in certain cases, I think. |
This draft pull request shows the initial failing test null_pack_color.test.ts. packColor is a function called in program_configuration.ts that breaks rendering when passed a null color. This test should prove that packColor cannot handle null values.
Not sure if exporting this function is bad practice for testing.
#4234