ianlewis / lexparse

Experimental lexer/parser library written in Go
Apache License 2.0
0 stars 1 forks source link

fix: Allow setting nil to binary trees #68

Closed ianlewis closed 1 month ago

ianlewis commented 1 month ago

Fixes SetLeft and SetRight to allow nil arguments.

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.19%. Comparing base (b4ef080) to head (c9be021).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/ianlewis/lexparse/pull/68/graphs/tree.svg?width=650&height=150&src=pr&token=PD7UEVGU5S&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ian+Lewis)](https://app.codecov.io/gh/ianlewis/lexparse/pull/68?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ian+Lewis) ```diff @@ Coverage Diff @@ ## main #68 +/- ## ========================================== + Coverage 90.13% 90.19% +0.05% ========================================== Files 3 3 Lines 365 367 +2 ========================================== + Hits 329 331 +2 Misses 24 24 Partials 12 12 ``` | [Files with missing lines](https://app.codecov.io/gh/ianlewis/lexparse/pull/68?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ian+Lewis) | Coverage Δ | | |---|---|---| | [parser.go](https://app.codecov.io/gh/ianlewis/lexparse/pull/68?src=pr&el=tree&filepath=parser.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ian+Lewis#diff-cGFyc2VyLmdv) | `93.54% <100.00%> (+0.08%)` | :arrow_up: |