1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-18 22:58:35 +00:00

Fix code formatting issues to pass CI

Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-27 03:12:29 +00:00
parent a030b26bb9
commit 6b29284f9d
2 changed files with 11 additions and 3 deletions

View file

@ -272,7 +272,7 @@ impl TestEnvironment {
/// Create a symbolic link /// Create a symbolic link
pub fn create_symlink(&self, target: &str, link_name: &str) -> Result<()> { pub fn create_symlink(&self, target: &str, link_name: &str) -> Result<()> {
let link_path = self.work_dir.join(link_name); let link_path = self.work_dir.join(link_name);
#[cfg(unix)] #[cfg(unix)]
{ {
// For Unix systems, preserve the target path as-is to support relative links // For Unix systems, preserve the target path as-is to support relative links

View file

@ -218,7 +218,11 @@ exec ls link_dir"#;
fs::write(&script_path, script_content).unwrap(); fs::write(&script_path, script_content).unwrap();
let result = run_test(&script_path); let result = run_test(&script_path);
assert!(result.is_ok(), "Directory symlink test failed: {:?}", result); assert!(
result.is_ok(),
"Directory symlink test failed: {:?}",
result
);
} }
#[cfg(unix)] #[cfg(unix)]
@ -240,7 +244,11 @@ relative content"#;
fs::write(&script_path, script_content).unwrap(); fs::write(&script_path, script_content).unwrap();
let result = run_test(&script_path); let result = run_test(&script_path);
assert!(result.is_ok(), "Relative path symlink test failed: {:?}", result); assert!(
result.is_ok(),
"Relative path symlink test failed: {:?}",
result
);
} }
#[test] #[test]