polyphony-chat / chorus

A Rust library for interacting with multiple Polyphony- and Spacebar-Compatible instances at once.
https://crates.io/crates/chorus
Mozilla Public License 2.0
16 stars 7 forks source link

Coverage #468

Closed bitfl0wer closed 7 months ago

bitfl0wer commented 7 months ago

Up the reported coverage on coveralls by adding some missing tests, especially for types. Also removes/replaces some old, faulty or non-idiomatic code.

While unit testing might seem a bit bloaty (especially with this many additions), I'd argue that writing somewhat sensible tests is the only good way to somewhat reliably keep things from breaking in larger projects/bigger codebases, such as these.

Most of these tests should, hopefully, be of acceptable quality, although I do admit that when writing tests, I sometimes just like to turn my brain off