mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
refactor: rename _ex() -> _ext()
"ex" means "used to be, but no longer is". "ext" means "extended", which is the intended meaning. "Ext" is more common not only in the Rust ecosystem but in general. We already had several people (myself included) asking what "ex" is supposed to mean. To reproduce this commit, search and replace `_ex(?!\w)` -> `_ext`. But don't change `list_transports_ex` because it's public API.
This commit is contained in:
@@ -29,26 +29,26 @@ enum SetupContactCase {
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_setup_contact_basic() {
|
||||
test_setup_contact_ex(SetupContactCase::Normal).await;
|
||||
test_setup_contact_ext(SetupContactCase::Normal).await;
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_setup_contact_wrong_alice_gossip() {
|
||||
let (alice, _) = test_setup_contact_ex(SetupContactCase::WrongAliceGossip).await;
|
||||
let (alice, _) = test_setup_contact_ext(SetupContactCase::WrongAliceGossip).await;
|
||||
alice.assert_warn("No self addr+pubkey gossip found").await;
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_setup_contact_alice_is_bot() {
|
||||
test_setup_contact_ex(SetupContactCase::AliceIsBot).await;
|
||||
test_setup_contact_ext(SetupContactCase::AliceIsBot).await;
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_setup_contact_alice_has_name() {
|
||||
test_setup_contact_ex(SetupContactCase::AliceHasName).await;
|
||||
test_setup_contact_ext(SetupContactCase::AliceHasName).await;
|
||||
}
|
||||
|
||||
async fn test_setup_contact_ex(case: SetupContactCase) -> (TestContext, TestContext) {
|
||||
async fn test_setup_contact_ext(case: SetupContactCase) -> (TestContext, TestContext) {
|
||||
let _n = TimeShiftFalsePositiveNote;
|
||||
|
||||
let mut tcm = TestContextManager::new();
|
||||
@@ -449,18 +449,18 @@ async fn test_setup_contact_concurrent_calls() -> Result<()> {
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_secure_join_group_legacy() -> Result<()> {
|
||||
test_secure_join_group_ex(false, false).await
|
||||
test_secure_join_group_ext(false, false).await
|
||||
}
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_secure_join_group_v3() -> Result<()> {
|
||||
test_secure_join_group_ex(true, false).await
|
||||
test_secure_join_group_ext(true, false).await
|
||||
}
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_secure_join_group_v3_without_invite() -> Result<()> {
|
||||
test_secure_join_group_ex(true, true).await
|
||||
test_secure_join_group_ext(true, true).await
|
||||
}
|
||||
|
||||
async fn test_secure_join_group_ex(v3: bool, remove_invite: bool) -> Result<()> {
|
||||
async fn test_secure_join_group_ext(v3: bool, remove_invite: bool) -> Result<()> {
|
||||
let mut tcm = TestContextManager::new();
|
||||
let alice = tcm.alice().await;
|
||||
let bob = tcm.bob().await;
|
||||
@@ -688,18 +688,18 @@ async fn test_secure_join_group_ex(v3: bool, remove_invite: bool) -> Result<()>
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_secure_join_broadcast_legacy() -> Result<()> {
|
||||
test_secure_join_broadcast_ex(false, false).await
|
||||
test_secure_join_broadcast_ext(false, false).await
|
||||
}
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_secure_join_broadcast_v3() -> Result<()> {
|
||||
test_secure_join_broadcast_ex(true, false).await
|
||||
test_secure_join_broadcast_ext(true, false).await
|
||||
}
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_secure_join_broadcast_v3_without_invite() -> Result<()> {
|
||||
test_secure_join_broadcast_ex(true, true).await
|
||||
test_secure_join_broadcast_ext(true, true).await
|
||||
}
|
||||
|
||||
async fn test_secure_join_broadcast_ex(v3: bool, remove_invite: bool) -> Result<()> {
|
||||
async fn test_secure_join_broadcast_ext(v3: bool, remove_invite: bool) -> Result<()> {
|
||||
let mut tcm = TestContextManager::new();
|
||||
let alice = &tcm.alice().await;
|
||||
let bob = &tcm.bob().await;
|
||||
@@ -720,18 +720,18 @@ async fn test_secure_join_broadcast_ex(v3: bool, remove_invite: bool) -> Result<
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_setup_contact_compatibility_legacy() -> Result<()> {
|
||||
test_setup_contact_compatibility_ex(false, false).await
|
||||
test_setup_contact_compatibility_ext(false, false).await
|
||||
}
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_setup_contact_compatibility_v3() -> Result<()> {
|
||||
test_setup_contact_compatibility_ex(true, false).await
|
||||
test_setup_contact_compatibility_ext(true, false).await
|
||||
}
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_setup_contact_compatibility_v3_without_invite() -> Result<()> {
|
||||
test_setup_contact_compatibility_ex(true, true).await
|
||||
test_setup_contact_compatibility_ext(true, true).await
|
||||
}
|
||||
|
||||
async fn test_setup_contact_compatibility_ex(v3: bool, remove_invite: bool) -> Result<()> {
|
||||
async fn test_setup_contact_compatibility_ext(v3: bool, remove_invite: bool) -> Result<()> {
|
||||
let mut tcm = TestContextManager::new();
|
||||
let alice = &tcm.alice().await;
|
||||
let bob = &tcm.bob().await;
|
||||
|
||||
Reference in New Issue
Block a user