Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/cppinsights
/ testSwitch
Function
testSwitch
tests/EduCoroutineExprTest.cpp:120–129 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
118
}
119
120
task<int> testSwitch()
121
{
122
task<int> v = get_random();
123
124
switch(co_await v) {
125
default: break;
126
}
127
128
co_return 0;
129
}
130
131
task<int> testWhile()
132
{
Callers
nothing calls this directly
Calls
1
get_random
Function · 0.70
Tested by
no test coverage detected