I thought about test yesterday but I wasn't sure how I could check that string was really colored.
Today I realized that I could just check color's codes in string.
It seems to work fine: fails on before-patch version and passes on after-patch one.
I also added function to build default LogParameters struct. Not sure if it's a common practice in Rust but it seems to be rather convenient and helps to avoid duplication.
Hi @mquander,
I thought about test yesterday but I wasn't sure how I could check that string was really colored.
Today I realized that I could just check color's codes in string. It seems to work fine: fails on before-patch version and passes on after-patch one.
I also added function to build default
LogParameters
struct. Not sure if it's a common practice in Rust but it seems to be rather convenient and helps to avoid duplication.