mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
Merge pull request #251 from a-kenji/improve/test-coverage
chore: add tests for the run engine
This commit is contained in:
commit
e1ca0bc7ca
1414
src/engine.rs
1414
src/engine.rs
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user