Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/qpid-proton
/ test_initializer_list_constructor
Function
test_initializer_list_constructor
cpp/src/map_test.cpp:124–129 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
122
}
123
124
void test_initializer_list_constructor() {
125
proton::map<string, scalar> m({{
"a"
, 2}, {
"b"
, 3}});
126
ASSERT_EQUAL(scalar(2), m.get(
"a"
));
127
ASSERT_EQUAL(scalar(3), m.get(
"b"
));
128
ASSERT_EQUAL(2U, m.size());
129
}
130
131
}
132
Callers
1
main
Function · 0.85
Calls
3
scalar
Class · 0.50
get
Method · 0.45
size
Method · 0.45
Tested by
no test coverage detected