-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
127 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,6 @@ | ||
pub mod fs; | ||
pub mod types; | ||
pub mod local_server; | ||
pub mod types; | ||
|
||
pub use fs::{Cli, ThreeDirInput}; | ||
pub use types::*; | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
insta::assert_yaml_snapshot!(ThreeDirInput::FakeData.scan().unwrap(), | ||
@r###" | ||
--- | ||
added file: | ||
- ~ | ||
- added | ||
- added | ||
deleted_file: | ||
- deleted | ||
- ~ | ||
- ~ | ||
edited_file: | ||
- "First\nThird\nFourth\nFourthAndAHalf\n\nFifth\nSixth\n----\none two" | ||
- "First\nSecond\nThird\nFifth\nSixth\n----\none\n" | ||
- "First\nSecond\nThird\nFifth\nSixth\n----\none\n" | ||
"###); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters