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/config_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/config_test.rs')
| -rw-r--r-- | crates/shirabe/tests/config_test.rs | 159 |
1 files changed, 129 insertions, 30 deletions
diff --git a/crates/shirabe/tests/config_test.rs b/crates/shirabe/tests/config_test.rs index f44b746..6eddf9b 100644 --- a/crates/shirabe/tests/config_test.rs +++ b/crates/shirabe/tests/config_test.rs @@ -167,35 +167,134 @@ fn test_add_packagist_repository() { // htaccess-protect, var/realpath replacement, oauth, audit, ...) without the env isolation // their setUp/tearDown provides, or exercise plugin-config merge details. They are not // ported yet. -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] - fn $name() { - todo!() - } - }; +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_preferred_install_as_string() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_merge_preferred_install() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_merge_github_oauth() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_var_replacement() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_realpath_replacement() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_stream_wrapper_dirs() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_fetching_relative_paths() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_override_github_protocols() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_git_disabled_by_default_in_github_protocols() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_allowed_urls_pass() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_prohibited_urls_throw_exception() { + todo!() } -stub!(test_preferred_install_as_string); -stub!(test_merge_preferred_install); -stub!(test_merge_github_oauth); -stub!(test_var_replacement); -stub!(test_realpath_replacement); -stub!(test_stream_wrapper_dirs); -stub!(test_fetching_relative_paths); -stub!(test_override_github_protocols); -stub!(test_git_disabled_by_default_in_github_protocols); -stub!(test_allowed_urls_pass); -stub!(test_prohibited_urls_throw_exception); -stub!(test_prohibited_urls_warning_verify_peer); -stub!(test_disable_tls_can_be_overridden); -stub!(test_process_timeout); -stub!(test_htaccess_protect); -stub!(test_get_source_of_value); -stub!(test_get_source_of_value_env_variables); -stub!(test_audit); -stub!(test_get_defaults_to_an_empty_array); -stub!(test_merges_plugin_config); -stub!(test_overrides_global_boolean_plugins_config); -stub!(test_allows_all_plugins_from_local_boolean); +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_prohibited_urls_warning_verify_peer() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_disable_tls_can_be_overridden() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_process_timeout() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_htaccess_protect() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_get_source_of_value() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_get_source_of_value_env_variables() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_audit() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_get_defaults_to_an_empty_array() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_merges_plugin_config() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_overrides_global_boolean_plugins_config() { + todo!() +} + +#[test] +#[ignore = "not yet ported (env-dependent without the setUp/tearDown isolation, or plugin-config merge details)"] +fn test_allows_all_plugins_from_local_boolean() { + todo!() +} |
