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/repository/composer_repository_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/repository/composer_repository_test.rs')
| -rw-r--r-- | crates/shirabe/tests/repository/composer_repository_test.rs | 69 |
1 files changed, 52 insertions, 17 deletions
diff --git a/crates/shirabe/tests/repository/composer_repository_test.rs b/crates/shirabe/tests/repository/composer_repository_test.rs index 89c55b5..f600a55 100644 --- a/crates/shirabe/tests/repository/composer_repository_test.rs +++ b/crates/shirabe/tests/repository/composer_repository_test.rs @@ -3,22 +3,57 @@ // These construct a ComposerRepository with a mocked HttpDownloader/IO/Config and parse // provider/package data whose constraints go through a look-around regex; mocking is not // available and a real HttpDownloader reaches curl_multi_init (todo!()). -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] - fn $name() { - todo!() - } - }; +#[test] +#[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] +fn test_load_data() { + todo!() } -stub!(test_load_data); -stub!(test_what_provides); -stub!(test_search_with_type); -stub!(test_search_with_special_chars); -stub!(test_search_with_abandoned_packages); -stub!(test_canonicalize_url); -stub!(test_get_provider_names_will_return_partial_package_names); -stub!(test_get_security_advisories_assert_repository_http_options_are_used); -stub!(test_get_security_advisories_assert_repository_advisories_is_zero_indexed_array_with_consecutive_keys); +#[test] +#[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] +fn test_what_provides() { + todo!() +} + +#[test] +#[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] +fn test_search_with_type() { + todo!() +} + +#[test] +#[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] +fn test_search_with_special_chars() { + todo!() +} + +#[test] +#[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] +fn test_search_with_abandoned_packages() { + todo!() +} + +#[test] +#[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] +fn test_canonicalize_url() { + todo!() +} + +#[test] +#[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] +fn test_get_provider_names_will_return_partial_package_names() { + todo!() +} + +#[test] +#[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] +fn test_get_security_advisories_assert_repository_http_options_are_used() { + todo!() +} + +#[test] +#[ignore = "mocks HttpDownloader/IO (curl_multi_init todo!()) and parses constraints via a look-around regex"] +fn test_get_security_advisories_assert_repository_advisories_is_zero_indexed_array_with_consecutive_keys() + { + todo!() +} |
