mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-10 05:26:56 +00:00
52 lines
1.3 KiB
TOML
52 lines
1.3 KiB
TOML
includes = ["folly/sorted_vector_types.h"]
|
||
definitions = '''
|
||
using folly::sorted_vector_set;
|
||
'''
|
||
|
||
[cases]
|
||
[cases.no_ints]
|
||
oil_skip = 'not implemented for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/320
|
||
param_types = ["const sorted_vector_set<int>&"]
|
||
setup = "return {};"
|
||
expect_json = '''[{
|
||
"staticSize":24,
|
||
"dynamicSize":0,
|
||
"length":0,
|
||
"capacity":0,
|
||
"elementStaticSize":4,
|
||
"members":[{
|
||
"staticSize": 24,
|
||
"dynamicSize": 0,
|
||
"length": 0,
|
||
"capacity": 0,
|
||
"elementStaticSize": 4
|
||
}]}]'''
|
||
|
||
[cases.some_ints]
|
||
oil_skip = 'not implemented for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/320
|
||
param_types = ["const sorted_vector_set<int>&"]
|
||
setup = '''
|
||
sorted_vector_set<int> is;
|
||
is.insert(1);
|
||
is.insert(3);
|
||
is.insert(2);
|
||
is.insert(3);
|
||
return is;
|
||
'''
|
||
expect_json = '''[{
|
||
"staticSize": 24,
|
||
"dynamicSize": 16,
|
||
"exclusiveSize": 0,
|
||
"length":3,
|
||
"capacity":4,
|
||
"elementStaticSize":4,
|
||
"members": [{
|
||
"staticSize": 24,
|
||
"dynamicSize": 16,
|
||
"exclusiveSize": 40,
|
||
"length": 3,
|
||
"capacity": 4,
|
||
"elementStaticSize": 4
|
||
}]}]
|
||
'''
|