mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
style: auto-format integration tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
e60875ac12
commit
e86797fbf4
1 file changed
+6
-4
@@ -3993,8 +3993,7 @@ fn setup_diff_test_repo() -> tempfile::TempDir {
|
|||||||
.output()
|
.output()
|
||||||
.expect("git config name");
|
.expect("git config name");
|
||||||
|
|
||||||
std::fs::write(repo.join("test.txt"), "line 1\nline 2\nline 3\n")
|
std::fs::write(repo.join("test.txt"), "line 1\nline 2\nline 3\n").expect("can write test file");
|
||||||
.expect("can write test file");
|
|
||||||
|
|
||||||
Command::new("git")
|
Command::new("git")
|
||||||
.args(["add", "test.txt"])
|
.args(["add", "test.txt"])
|
||||||
@@ -4009,8 +4008,11 @@ fn setup_diff_test_repo() -> tempfile::TempDir {
|
|||||||
.expect("git commit");
|
.expect("git commit");
|
||||||
|
|
||||||
// Modify the file so --diff has something to show
|
// Modify the file so --diff has something to show
|
||||||
std::fs::write(repo.join("test.txt"), "line 1\nline 2 modified\nline 3\nline 4 added\n")
|
std::fs::write(
|
||||||
.expect("can write modified test file");
|
repo.join("test.txt"),
|
||||||
|
"line 1\nline 2 modified\nline 3\nline 4 added\n",
|
||||||
|
)
|
||||||
|
.expect("can write modified test file");
|
||||||
|
|
||||||
dir
|
dir
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user