mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-10 05:26:56 +00:00
51 lines
2.2 KiB
TOML
51 lines
2.2 KiB
TOML
includes = ["queue"]
|
|
[cases]
|
|
[cases.int_empty]
|
|
param_types = ["const std::priority_queue<int>&"]
|
|
setup = "return {};"
|
|
expect_json = '''[{
|
|
"typeName": "priority_queue<int, std::vector<int, std::allocator<int> >, std::less<int> >",
|
|
"staticSize": 32, "dynamicSize": 0, "length": 0, "capacity": 0, "elementStaticSize": 4,
|
|
"members": [
|
|
{
|
|
"typeName": "vector<int, std::allocator<int> >",
|
|
"staticSize": 24, "dynamicSize": 0, "length": 0, "capacity": 0, "elementStaticSize": 4
|
|
}
|
|
]}]'''
|
|
[cases.int_some]
|
|
param_types = ["const std::priority_queue<int>&"]
|
|
setup = "return std::priority_queue<int>({}, {3,2,1});"
|
|
expect_json = '''[{
|
|
"typeName": "priority_queue<int, std::vector<int, std::allocator<int> >, std::less<int> >",
|
|
"staticSize": 32, "dynamicSize": 12, "length": 3, "capacity": 3, "elementStaticSize": 4,
|
|
"members": [
|
|
{
|
|
"typeName": "vector<int, std::allocator<int> >",
|
|
"staticSize": 24, "dynamicSize": 12, "length": 3, "capacity": 3, "elementStaticSize": 4
|
|
}
|
|
]}]'''
|
|
[cases.adapter_deque_empty]
|
|
param_types = ["const std::priority_queue<int, std::deque<int>>&"]
|
|
setup = "return {};"
|
|
expect_json = '''[{
|
|
"typeName": "priority_queue<int, std::deque<int, std::allocator<int> >, std::less<int> >",
|
|
"staticSize": 88, "dynamicSize": 0, "length": 0, "capacity": 0, "elementStaticSize": 4,
|
|
"members": [
|
|
{
|
|
"typeName": "deque<int, std::allocator<int> >",
|
|
"staticSize": 80, "dynamicSize": 0, "length": 0, "capacity": 0, "elementStaticSize": 4
|
|
}
|
|
]}]'''
|
|
[cases.adapter_deque_some]
|
|
param_types = ["const std::priority_queue<int, std::deque<int>>&"]
|
|
setup = "return std::priority_queue<int, std::deque<int>>({}, {3,2,1});"
|
|
expect_json = '''[{
|
|
"typeName": "priority_queue<int, std::deque<int, std::allocator<int> >, std::less<int> >",
|
|
"staticSize": 88, "dynamicSize": 12, "length": 3, "capacity": 3, "elementStaticSize": 4,
|
|
"members": [
|
|
{
|
|
"typeName": "deque<int, std::allocator<int> >",
|
|
"staticSize": 80, "dynamicSize": 12, "length": 3, "capacity": 3, "elementStaticSize": 4
|
|
}
|
|
]}]'''
|