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/command/show_command_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/command/show_command_test.rs')
| -rw-r--r-- | crates/shirabe/tests/command/show_command_test.rs | 166 |
1 files changed, 135 insertions, 31 deletions
diff --git a/crates/shirabe/tests/command/show_command_test.rs b/crates/shirabe/tests/command/show_command_test.rs index 6c2cf13..b17ce22 100644 --- a/crates/shirabe/tests/command/show_command_test.rs +++ b/crates/shirabe/tests/command/show_command_test.rs @@ -1,35 +1,139 @@ //! ref: composer/tests/Composer/Test/Command/ShowCommandTest.php -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] - fn $name() { - todo!() - } - }; +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_show() { + todo!() } -stub!(test_show); -stub!(test_outdated_filters_according_to_platform_reqs_and_warns); -stub!(test_outdated_filters_according_to_platform_reqs_without_warning_for_higher_versions); -stub!(test_show_direct_with_name_does_not_show_transient_dependencies); -stub!(test_show_direct_with_name_only_shows_direct_dependents); -stub!(test_show_platform_only_shows_platform_packages); -stub!(test_show_platform_works_without_composer_json); -stub!(test_outdated_with_zero_major); -stub!(test_show_all_shows_all_sections); -stub!(test_locked_requires_valid_lock_file); -stub!(test_locked_shows_all_locked); -stub!(test_invalid_option_combinations); -stub!(test_ignored_option_combinations); -stub!(test_self_and_name_only); -stub!(test_self_and_package_combination); -stub!(test_self); -stub!(test_not_installed_error); -stub!(test_no_dev_option); -stub!(test_package_filter); -stub!(test_not_existing_package); -stub!(test_not_existing_package_with_working_dir); -stub!(test_specific_package_and_tree); -stub!(test_name_only_prints_no_trailing_whitespace); +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_outdated_filters_according_to_platform_reqs_and_warns() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_outdated_filters_according_to_platform_reqs_without_warning_for_higher_versions() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_show_direct_with_name_does_not_show_transient_dependencies() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_show_direct_with_name_only_shows_direct_dependents() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_show_platform_only_shows_platform_packages() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_show_platform_works_without_composer_json() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_outdated_with_zero_major() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_show_all_shows_all_sections() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_locked_requires_valid_lock_file() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_locked_shows_all_locked() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_invalid_option_combinations() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_ignored_option_combinations() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_self_and_name_only() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_self_and_package_combination() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_self() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_not_installed_error() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_no_dev_option() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_package_filter() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_not_existing_package() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_not_existing_package_with_working_dir() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_specific_package_and_tree() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_name_only_prints_no_trailing_whitespace() { + todo!() +} |
