From f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 13:11:49 +0900 Subject: 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) --- crates/shirabe/tests/util/svn_test.rs | 40 +++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 13 deletions(-) (limited to 'crates/shirabe/tests/util/svn_test.rs') diff --git a/crates/shirabe/tests/util/svn_test.rs b/crates/shirabe/tests/util/svn_test.rs index 018a158..5e2775f 100644 --- a/crates/shirabe/tests/util/svn_test.rs +++ b/crates/shirabe/tests/util/svn_test.rs @@ -2,18 +2,32 @@ // These mock IO/Config and use reflection to drive Svn's credential handling; mocking and // reflection are not available here. -macro_rules! stub { - ($name:ident) => { - #[test] - #[ignore = "mocks IO/Config and uses reflection to drive Svn credentials; not ported"] - fn $name() { - todo!() - } - }; +#[test] +#[ignore = "mocks IO/Config and uses reflection to drive Svn credentials; not ported"] +fn test_credentials() { + todo!() } -stub!(test_credentials); -stub!(test_interactive_string); -stub!(test_credentials_from_config); -stub!(test_credentials_from_config_with_cache_credentials_true); -stub!(test_credentials_from_config_with_cache_credentials_false); +#[test] +#[ignore = "mocks IO/Config and uses reflection to drive Svn credentials; not ported"] +fn test_interactive_string() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config and uses reflection to drive Svn credentials; not ported"] +fn test_credentials_from_config() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config and uses reflection to drive Svn credentials; not ported"] +fn test_credentials_from_config_with_cache_credentials_true() { + todo!() +} + +#[test] +#[ignore = "mocks IO/Config and uses reflection to drive Svn credentials; not ported"] +fn test_credentials_from_config_with_cache_credentials_false() { + todo!() +} -- cgit v1.3.1