From 4bc776c3fda08e375a80a8158539ab0515dba9eb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 16 Dec 2024 01:58:22 +0100 Subject: [PATCH] `nodeinfo`: Rename `test!` macro to `test_version!` --- acrate_nodeinfo/tests/integration_tests.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/acrate_nodeinfo/tests/integration_tests.rs b/acrate_nodeinfo/tests/integration_tests.rs index 4ef8db6..c170185 100644 --- a/acrate_nodeinfo/tests/integration_tests.rs +++ b/acrate_nodeinfo/tests/integration_tests.rs @@ -24,9 +24,9 @@ fn make_client() -> reqwest::Client { } -macro_rules! test { +macro_rules! test_version { ($id:ident, $url:literal, $version:literal) => { - test!($id, $url, $version,); + test_version!($id, $url, $version,); }; ($id:ident, $url:literal, $version:literal, $($tag:meta),*) => { mod $id { @@ -59,12 +59,12 @@ macro_rules! test { }; } -test!(akkoma, "https://junimo.party", "2.1"); -test!(mastodon, "https://mastodon.social", "2.0"); -test!(misskey, "https://misskey.io", "2.1"); -test!(iceshrimpnet, "https://meow_company", "2.1"); -test!(gotosocial, "https://alpha.polymaths.social", "2.0"); -test!(bridgyfed, "https://fed.brid.gy", "2.1"); -test!(threads, "https://threads.net", "", ignore = "does not support NodeInfo"); -test!(snac, "https://ngoa.giao.loan", "2.0"); -test!(hollo, "https://hollo.social", "2.1"); +test_version!(akkoma, "https://junimo.party", "2.1"); +test_version!(mastodon, "https://mastodon.social", "2.0"); +test_version!(misskey, "https://misskey.io", "2.1"); +test_version!(iceshrimpnet, "https://meow_company", "2.1"); +test_version!(gotosocial, "https://alpha.polymaths.social", "2.0"); +test_version!(bridgyfed, "https://fed.brid.gy", "2.1"); +test_version!(threads, "https://threads.net", "", ignore = "does not support NodeInfo"); +test_version!(snac, "https://ngoa.giao.loan", "2.0"); +test_version!(hollo, "https://hollo.social", "2.1");