FerretDB / wire

Apache License 2.0
3 stars 3 forks source link

Use backquotes for strings #45

Closed AlekSi closed 1 month ago

AlekSi commented 1 month ago

That allows them to be used in quoted strings produced by slog handlers without backslashes.

codecov-commenter commented 1 month ago

Codecov Report

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

Project coverage is 65.70%. Comparing base (74fd337) to head (3217497).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/FerretDB/wire/pull/45/graphs/tree.svg?width=650&height=150&src=pr&token=D0L283UZ26&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FerretDB)](https://app.codecov.io/gh/FerretDB/wire/pull/45?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FerretDB) ```diff @@ Coverage Diff @@ ## main #45 +/- ## ========================================== - Coverage 65.81% 65.70% -0.12% ========================================== Files 41 41 Lines 1805 1799 -6 ========================================== - Hits 1188 1182 -6 Misses 447 447 Partials 170 170 ``` | [Files with missing lines](https://app.codecov.io/gh/FerretDB/wire/pull/45?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FerretDB) | Coverage Δ | | |---|---|---| | [wirebson/logging.go](https://app.codecov.io/gh/FerretDB/wire/pull/45?src=pr&el=tree&filepath=wirebson%2Flogging.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FerretDB#diff-d2lyZWJzb24vbG9nZ2luZy5nbw==) | `93.01% <100.00%> (-0.22%)` | :arrow_down: | | [Flag](https://app.codecov.io/gh/FerretDB/wire/pull/45/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FerretDB) | Coverage Δ | | |---|---|---| | [test](https://app.codecov.io/gh/FerretDB/wire/pull/45/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FerretDB) | `65.70% <100.00%> (-0.12%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FerretDB#carryforward-flags-in-the-pull-request-comment) to find out more.