跳到主要内容
test_rt
搜索
GitHub 仓库
crate 列表
docs.rs
tokio_
macros
2.7.0
test_rt
章节
Usage
In crate tokio_
macros
tokio_macros
Attribute Macro
test_rt
复制项目路径
Source
#[test_rt]
展开描述
将 async 函数标记为由运行时执行,适用于测试环境
§
用法
#[tokio::test]
async fn
my_test() {
assert!
(
true
); }