nodeinfo: Rename test! macro to test_version!

This commit is contained in:
Steffo 2024-12-16 01:58:22 +01:00
parent ded9fe564e
commit 4bc776c3fd
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -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");