Skip to content

Commit d6a805f

Browse files
committed
graph: Remove leftover println from file_resolver tests
1 parent c531c00 commit d6a805f

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

graph/src/components/link_resolver/file.rs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,13 @@ mod tests {
124124
let link = Link {
125125
link: test_file_path.to_string_lossy().to_string(),
126126
};
127-
let resolved_path = resolver.resolve_path(&link.link);
128-
println!("Absolute mode - Resolved path: {:?}", resolved_path);
129127
let result = resolver.cat(&logger, &link).await.unwrap();
130128
assert_eq!(result, test_content);
131129

132130
// Test path with leading slash that likely doesn't exist
133131
let link = Link {
134132
link: "/test.txt".to_string(),
135133
};
136-
let resolved_path = resolver.resolve_path(&link.link);
137-
println!(
138-
"Absolute mode - Path with leading slash: {:?}",
139-
resolved_path
140-
);
141134
let result = resolver.cat(&logger, &link).await;
142135
assert!(
143136
result.is_err(),
@@ -167,44 +160,17 @@ mod tests {
167160
let resolver = FileLinkResolver::with_base_dir(&temp_dir);
168161
let logger = slog::Logger::root(slog::Discard, slog::o!());
169162

170-
println!("Base directory mode - base dir: {:?}", temp_dir);
171-
172163
// Test relative path (no leading slash)
173164
let link = Link {
174165
link: "test.txt".to_string(),
175166
};
176-
let resolved_path = resolver.resolve_path(&link.link);
177-
println!(
178-
"Base directory mode - Resolved relative path: {:?}",
179-
resolved_path
180-
);
181167
let result = resolver.cat(&logger, &link).await.unwrap();
182168
assert_eq!(result, test_content);
183169

184-
// Test relative path with leading slash (should be treated as absolute on Unix)
185-
let link = Link {
186-
link: "/test.txt".to_string(),
187-
};
188-
let resolved_path = resolver.resolve_path(&link.link);
189-
println!(
190-
"Base directory mode - Resolved path with leading slash: {:?}",
191-
resolved_path
192-
);
193-
194-
println!(
195-
"Result for path with leading slash: {:?}",
196-
resolver.cat(&logger, &link).await
197-
);
198-
199170
// Test absolute path
200171
let link = Link {
201172
link: test_file_path.to_string_lossy().to_string(),
202173
};
203-
let resolved_path = resolver.resolve_path(&link.link);
204-
println!(
205-
"Base directory mode - Resolved absolute path: {:?}",
206-
resolved_path
207-
);
208174
let result = resolver.cat(&logger, &link).await.unwrap();
209175
assert_eq!(result, test_content);
210176

0 commit comments

Comments
 (0)