Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

405 B
Raw Blame
use super::{counted, record_sent};

#[tokio::test]
async fn counts_only_requests_inside_the_scope() {
    record_sent();
    let ((), outer) = counted(async {
        record_sent();
        let ((), inner) = counted(async {
            record_sent();
            record_sent();
        })
        .await;
        assert_eq!(inner, 2);
        record_sent();
    })
    .await;
    assert_eq!(outer, 2);
}