CTristan / lobotomy-corporation-mods

Mods for Lobotomy Corporation
MIT License
5 stars 0 forks source link

Improve code coverage #44

Closed CTristan closed 1 year ago

CTristan commented 1 year ago

Since code coverage has been enabled, it's time to clean up a bit to get us up to a reasonable standard of 80% code coverage.

codecov-commenter commented 1 year ago

Codecov Report

Base: 64.69% // Head: 99.01% // Increases project coverage by +34.32% :tada:

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #44 +/- ## ============================================ + Coverage 64.69% 99.01% +34.32% ============================================ Files 52 47 -5 Lines 895 714 -181 Branches 73 74 +1 ============================================ + Hits 579 707 +128 + Misses 287 3 -284 + Partials 29 4 -25 ``` | [Impacted Files](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan) | Coverage Δ | | |---|---|---| | [...BadLuckProtectionForGifts/Implementations/Agent.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuQmFkTHVja1Byb3RlY3Rpb25Gb3JHaWZ0cy9JbXBsZW1lbnRhdGlvbnMvQWdlbnQuY3M=) | `100.00% <ø> (ø)` | | | [...ationMods.Common/Extensions/UnitModelExtensions.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuQ29tbW9uL0V4dGVuc2lvbnMvVW5pdE1vZGVsRXh0ZW5zaW9ucy5jcw==) | `100.00% <ø> (+33.33%)` | :arrow_up: | | [...eeCustomization/Extensions/AgentModelExtensions.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuRnJlZUN1c3RvbWl6YXRpb24vRXh0ZW5zaW9ucy9BZ2VudE1vZGVsRXh0ZW5zaW9ucy5jcw==) | `100.00% <ø> (ø)` | | | [...lDieFromWorking/Extensions/AgentStateExtensions.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuV2FybldoZW5BZ2VudFdpbGxEaWVGcm9tV29ya2luZy9FeHRlbnNpb25zL0FnZW50U3RhdGVFeHRlbnNpb25zLmNz) | `66.66% <ø> (ø)` | | | [...ieFromWorking/Implementations/CreatureEvaluator.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuV2FybldoZW5BZ2VudFdpbGxEaWVGcm9tV29ya2luZy9JbXBsZW1lbnRhdGlvbnMvQ3JlYXR1cmVFdmFsdWF0b3IuY3M=) | `100.00% <ø> (ø)` | | | [...mplementations/CreatureEvaluators/NoneEvaluator.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuV2FybldoZW5BZ2VudFdpbGxEaWVGcm9tV29ya2luZy9JbXBsZW1lbnRhdGlvbnMvQ3JlYXR1cmVFdmFsdWF0b3JzL05vbmVFdmFsdWF0b3IuY3M=) | `100.00% <ø> (+100.00%)` | :arrow_up: | | [...rotectionForGifts/Extensions/UseSkillExtensions.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuQmFkTHVja1Byb3RlY3Rpb25Gb3JHaWZ0cy9FeHRlbnNpb25zL1VzZVNraWxsRXh0ZW5zaW9ucy5jcw==) | `100.00% <100.00%> (ø)` | | | [...ionMods.BadLuckProtectionForGifts/Harmony\_Patch.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuQmFkTHVja1Byb3RlY3Rpb25Gb3JHaWZ0cy9IYXJtb255X1BhdGNoLmNz) | `100.00% <100.00%> (+45.45%)` | :arrow_up: | | [...ectionForGifts/Implementations/AgentWorkTracker.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuQmFkTHVja1Byb3RlY3Rpb25Gb3JHaWZ0cy9JbXBsZW1lbnRhdGlvbnMvQWdlbnRXb3JrVHJhY2tlci5jcw==) | `98.76% <100.00%> (+2.71%)` | :arrow_up: | | [....BadLuckProtectionForGifts/Implementations/Gift.cs](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan#diff-TG9ib3RvbXlDb3Jwb3JhdGlvbk1vZHMuQmFkTHVja1Byb3RlY3Rpb25Gb3JHaWZ0cy9JbXBsZW1lbnRhdGlvbnMvR2lmdC5jcw==) | `95.00% <100.00%> (ø)` | | | ... and [61 more](https://codecov.io/gh/CTristan/lobotomy-corporation-mods/pull/44?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Chris+Tristan)

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