diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 13:11:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 13:11:49 +0900 |
| commit | f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d (patch) | |
| tree | a8b91efea7f17e61a8d0d9a82604d3ed964010a7 /crates/shirabe/tests/util/filesystem_test.rs | |
| parent | b1571202200e4dc630202928f5ff78959273c7ec (diff) | |
| download | php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.tar.gz php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.tar.zst php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/util/filesystem_test.rs')
| -rw-r--r-- | crates/shirabe/tests/util/filesystem_test.rs | 89 |
1 files changed, 69 insertions, 20 deletions
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!() - } - }; +#[test] +#[ignore = "not yet ported (Filesystem path helpers plus on-disk size/copy/symlink/junction fixtures)"] +fn test_find_shortest_path_code() { + 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() { + 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!() +} |
