Merge pull request #251 from a-kenji/improve/test-coverage

chore: add tests for the run engine
This commit is contained in:
Jonas Chevalier 2023-09-28 13:35:21 +02:00 committed by GitHub
commit e1ca0bc7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1243 additions and 181 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,6 +15,16 @@ use crate::{expand_exe, expand_if_path, expand_path};
#[derive(Debug, Default, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct FormatterName(String);
#[cfg(test)]
impl FormatterName {
pub(crate) fn new<S>(name: S) -> Self
where
S: Into<String>,
{
Self(name.into())
}
}
impl Serialize for FormatterName {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where