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/plugin | |
| 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/plugin')
| -rw-r--r-- | crates/shirabe/tests/plugin/plugin_installer_test.rs | 117 |
1 files changed, 93 insertions, 24 deletions
diff --git a/crates/shirabe/tests/plugin/plugin_installer_test.rs b/crates/shirabe/tests/plugin/plugin_installer_test.rs index 1243a49..6442b5c 100644 --- a/crates/shirabe/tests/plugin/plugin_installer_test.rs +++ b/crates/shirabe/tests/plugin/plugin_installer_test.rs @@ -23,29 +23,98 @@ impl Drop for TearDown { // The plugin system requires the PHP runtime to load and instantiate plugin classes; the // PluginManager/PluginInstaller is intentionally not implemented yet (TODO(plugin)). -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] - fn $name() { - todo!() - } - }; +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_install_new_plugin() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_install_plugin_with_root_package_having_files_autoload() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_install_multiple_plugins() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_upgrade_with_new_class_name() { + todo!() } -stub!(test_install_new_plugin); -stub!(test_install_plugin_with_root_package_having_files_autoload); -stub!(test_install_multiple_plugins); -stub!(test_upgrade_with_new_class_name); -stub!(test_uninstall); -stub!(test_upgrade_with_same_class_name); -stub!(test_register_plugin_only_one_time); -stub!(test_star_plugin_version_works_with_any_api_version); -stub!(test_plugin_constraint_works_only_with_certain_api_version); -stub!(test_plugin_range_constraints_work_only_with_certain_api_version); -stub!(test_command_provider_capability); -stub!(test_incapable_plugin_is_correctly_detected); -stub!(test_capability_implements_composer_plugin_api_class_and_is_constructed_with_args); -stub!(test_querying_with_invalid_capability_class_name_throws); -stub!(test_querying_non_provided_capability_returns_null_safely); -stub!(test_querying_with_non_existing_or_wrong_capability_class_types_throws); +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_uninstall() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_upgrade_with_same_class_name() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_register_plugin_only_one_time() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_star_plugin_version_works_with_any_api_version() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_plugin_constraint_works_only_with_certain_api_version() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_plugin_range_constraints_work_only_with_certain_api_version() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_command_provider_capability() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_incapable_plugin_is_correctly_detected() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_capability_implements_composer_plugin_api_class_and_is_constructed_with_args() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_querying_with_invalid_capability_class_name_throws() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_querying_non_provided_capability_returns_null_safely() { + todo!() +} + +#[test] +#[ignore = "the plugin API (PluginManager/PluginInstaller loading PHP plugin classes) is not implemented yet"] +fn test_querying_with_non_existing_or_wrong_capability_class_types_throws() { + todo!() +} |
