From f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 13:11:49 +0900 Subject: test(tests): expand stub macros into plain test functions The per-file stub!/encode_stub!/etc. macros generated #[ignore]d test functions but obscured the individual test bodies. Expanding them inline removes the macro indirection so future ports can fill in each function directly. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/util/filesystem_test.rs | 93 +++++++++++++++++++++------- 1 file changed, 71 insertions(+), 22 deletions(-) (limited to 'crates/shirabe/tests/util/filesystem_test.rs') diff --git a/crates/shirabe/tests/util/filesystem_test.rs b/crates/shirabe/tests/util/filesystem_test.rs index e101c79..39fa256 100644 --- a/crates/shirabe/tests/util/filesystem_test.rs +++ b/crates/shirabe/tests/util/filesystem_test.rs @@ -51,25 +51,74 @@ impl Drop for TearDown { } } -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] - fn $name() { - todo!() - } - }; -} - -stub!(test_find_shortest_path_code); -stub!(test_find_shortest_path); -stub!(test_remove_directory_php); -stub!(test_file_size); -stub!(test_directory_size); -stub!(test_normalize_path); -stub!(test_unlink_symlinked_directory); -stub!(test_remove_symlinked_directory_with_trailing_slash); -stub!(test_junctions); -stub!(test_override_junctions); -stub!(test_copy); -stub!(test_copy_then_remove); +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_find_shortest_path_code() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_find_shortest_path() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_remove_directory_php() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_file_size() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_directory_size() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_normalize_path() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_unlink_symlinked_directory() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_remove_symlinked_directory_with_trailing_slash() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_junctions() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_override_junctions() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_copy() { + todo!() +} + +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_copy_then_remove() { + todo!() +} -- cgit v1.3.1