mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-12 16:43:03 +03:00
cargo fmt
This commit is contained in:
parent
bf9d9d499d
commit
228224f170
@ -285,7 +285,15 @@ mod test {
|
||||
deltas::Operation::Insert((4, "2".to_string())),
|
||||
);
|
||||
assert_eq!(
|
||||
std::fs::read_to_string(gb_repository.git_repository.path().join("gitbutler").join("session").join("wd").join("test.txt"))?,
|
||||
std::fs::read_to_string(
|
||||
gb_repository
|
||||
.git_repository
|
||||
.path()
|
||||
.join("gitbutler")
|
||||
.join("session")
|
||||
.join("wd")
|
||||
.join("test.txt")
|
||||
)?,
|
||||
"test2"
|
||||
);
|
||||
|
||||
@ -358,7 +366,15 @@ mod test {
|
||||
assert_eq!(deltas.len(), 1);
|
||||
assert_eq!(deltas[0].operations.len(), 0);
|
||||
assert_eq!(
|
||||
std::fs::read_to_string(gb_repository.git_repository.path().join("gitbutler").join("session").join("wd").join("test.bin"))?,
|
||||
std::fs::read_to_string(
|
||||
gb_repository
|
||||
.git_repository
|
||||
.path()
|
||||
.join("gitbutler")
|
||||
.join("session")
|
||||
.join("wd")
|
||||
.join("test.bin")
|
||||
)?,
|
||||
""
|
||||
);
|
||||
|
||||
@ -390,7 +406,15 @@ mod test {
|
||||
deltas::Operation::Insert((0, "test".to_string())),
|
||||
);
|
||||
assert_eq!(
|
||||
std::fs::read_to_string(gb_repository.git_repository.path().join("gitbutler").join("session").join("wd").join("test.txt"))?,
|
||||
std::fs::read_to_string(
|
||||
gb_repository
|
||||
.git_repository
|
||||
.path()
|
||||
.join("gitbutler")
|
||||
.join("session")
|
||||
.join("wd")
|
||||
.join("test.txt")
|
||||
)?,
|
||||
"test"
|
||||
);
|
||||
|
||||
@ -421,7 +445,15 @@ mod test {
|
||||
deltas::Operation::Insert((0, "test".to_string())),
|
||||
);
|
||||
assert_eq!(
|
||||
std::fs::read_to_string(gb_repository.git_repository.path().join("gitbutler").join("session").join("wd").join("test.txt"))?,
|
||||
std::fs::read_to_string(
|
||||
gb_repository
|
||||
.git_repository
|
||||
.path()
|
||||
.join("gitbutler")
|
||||
.join("session")
|
||||
.join("wd")
|
||||
.join("test.txt")
|
||||
)?,
|
||||
"test"
|
||||
);
|
||||
|
||||
@ -441,7 +473,15 @@ mod test {
|
||||
deltas::Operation::Insert((4, "2".to_string())),
|
||||
);
|
||||
assert_eq!(
|
||||
std::fs::read_to_string(gb_repository.git_repository.path().join("gitbutler").join("session").join("wd").join("test.txt"))?,
|
||||
std::fs::read_to_string(
|
||||
gb_repository
|
||||
.git_repository
|
||||
.path()
|
||||
.join("gitbutler")
|
||||
.join("session")
|
||||
.join("wd")
|
||||
.join("test.txt")
|
||||
)?,
|
||||
"test2"
|
||||
);
|
||||
|
||||
@ -472,7 +512,15 @@ mod test {
|
||||
deltas::Operation::Insert((0, "test".to_string())),
|
||||
);
|
||||
assert_eq!(
|
||||
std::fs::read_to_string(gb_repository.git_repository.path().join("gitbutler").join("session").join("wd").join("test.txt"))?,
|
||||
std::fs::read_to_string(
|
||||
gb_repository
|
||||
.git_repository
|
||||
.path()
|
||||
.join("gitbutler")
|
||||
.join("session")
|
||||
.join("wd")
|
||||
.join("test.txt")
|
||||
)?,
|
||||
"test"
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user