gaogaotiantian / objprint

A library that can print Python objects in human readable format
Apache License 2.0
510 stars 43 forks source link

Suppress exceptions that occur when reading properties #98

Closed Ovizro closed 1 year ago

Ovizro commented 1 year ago

A simple fix for #97 .

gaogaotiantian commented 1 year ago

要写个test case~保证覆盖率。同时避免regression。

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (096bc73) 100.00% compared to head (d6cf58d) 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #98 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 5 5 Lines 378 381 +3 ========================================= + Hits 378 381 +3 ``` | [Files Changed](https://app.codecov.io/gh/gaogaotiantian/objprint/pull/98?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tian+Gao) | Coverage Δ | | |---|---|---| | [src/objprint/objprint.py](https://app.codecov.io/gh/gaogaotiantian/objprint/pull/98?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tian+Gao#diff-c3JjL29ianByaW50L29ianByaW50LnB5) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Ovizro commented 1 year ago

简单写了一个测试,天哥看看可以吗