Skip to content

Make mocking async runtime agnostic#106

Merged
syyyr merged 1 commit into
mainfrom
mocking-runtime-agnostic
Mar 31, 2026
Merged

Make mocking async runtime agnostic#106
syyyr merged 1 commit into
mainfrom
mocking-runtime-agnostic

Conversation

@j4r0u53k
Copy link
Copy Markdown
Collaborator

The runtime API is changed such that the TaskHandle is a Future which resolves to a Result both for smol and tokio.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 31, 2026

Code coverage report for 24cefb6

Coverage difference

❌ Code coverage worsened.

Filename Stmts Miss Cover Missing
src/runtime.rs +3 +3 -13.33% 20, 21, 22
TOTAL +3 +3 -0.12%

Overall coverage

Click to expand
Filename Stmts Miss Cover Missing
src/runtime.rs 18 6 66.67% 20-36
src/appnodes.rs 27 20 25.93% 74-154
src/client.rs 990 86 91.31% 107, 168-170, 188-190, 214-220, 241, 248, 311-313, 349-353, 374-379, 396, 411-429, 441-442, 452, 470-473, 490-502, 516, 533, 540-542, 581-586, 591, 598-601, 628, 640-642, 674, 712, 720, 726, 799, 1297, 1310-1313
src/connection.rs 183 85 53.55% 33-37, 65, 102, 106-119, 128, 149-154, 179-184, 192, 198-201, 215-221, 228-229, 238-242, 248-249, 259-302, 309
src/clientapi.rs 325 140 56.92% 48-53, 63-65, 71, 76, 94-138, 162-166, 185-191, 210-213, 219-225, 240-243, 265-267, 272, 276-279, 281, 296-297, 324-327, 332, 337, 347-348, 416-454, 470-473, 488-500, 520-522, 565-570, 578-581, 586-588
src/clientnode.rs 491 65 86.76% 31-35, 82-86, 93-97, 104, 111-112, 176-197, 335, 339, 344-351, 376-379, 416-422, 516-517, 525, 531-536, 678, 695, 789, 815, 859, 873
src/macros.rs 4 0 100.00%
TOTAL 2038 402 80.27%

HTML reports

@j4r0u53k j4r0u53k requested a review from syyyr March 31, 2026 12:47
The runtime API is changed such that the TaskHandle is a Future
which resolves to a Result both for smol and tokio.
@j4r0u53k j4r0u53k force-pushed the mocking-runtime-agnostic branch from 5355ef4 to 24cefb6 Compare March 31, 2026 12:55
@syyyr syyyr merged commit 6f7acc6 into main Mar 31, 2026
10 checks passed
@syyyr syyyr deleted the mocking-runtime-agnostic branch March 31, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants