Closed nieomylnieja closed 1 month ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 78.70%. Comparing base (
b2a8cc6
) to head (820faf4
).
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Before submitting your PR, please confirm the following.
scanDoubleQuote
was not progressingctx.idx
so I refactored the switch statement responsible for handling all the escape sequences. The test cases were generated BEFORE I implemented these changes, so I knew that my refactor didn't change the previous behaviour (as much certainty as the test cases coverage allows).I've rewritten
lexer_test.go
TestTokenize
test function to actually test something instead of dumping the tokens :)I've generated these test cases by writing the following code in the
TestTokenize
:I then just copied the generate code fro
lexer_test_cases.go
intotokens
struct list assignment.