mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-09-19 19:19:05 +01:00
tbv2: update tuple test
This test is a bit odd, but this change adds the full set of size/member checks for the hierarchy for TreeBuilder v2 and enables it. Closes #304 Test Plan: - CI
This commit is contained in:
parent
d232a5d2fb
commit
a9afb25248
@ -9,7 +9,6 @@ struct Bar {
|
|||||||
'''
|
'''
|
||||||
[cases]
|
[cases]
|
||||||
[cases.uint64_uint64]
|
[cases.uint64_uint64]
|
||||||
oil_skip = "std::tuple is not implemented for treebuilder v2" # https://github.com/facebookexperimental/object-introspection/issues/304
|
|
||||||
param_types = ["Bar&"]
|
param_types = ["Bar&"]
|
||||||
setup = '''
|
setup = '''
|
||||||
Foo f;
|
Foo f;
|
||||||
@ -35,3 +34,15 @@ struct Bar {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
'''
|
'''
|
||||||
|
expect_json_v2 = '''[
|
||||||
|
{ "size":24, "staticSize":24, "exclusiveSize":0, "members":[
|
||||||
|
{"size":24, "staticSize":24, "exclusiveSize":8, "members":[
|
||||||
|
{"size":16, "staticSize":16, "exclusiveSize":0, "members": [
|
||||||
|
{"size":16, "staticSize":16, "exclusiveSize":0, "members": [
|
||||||
|
{"size":8, "staticSize":8, "exclusiveSize":8, "members":[]},
|
||||||
|
{"size":8, "staticSize":8, "exclusiveSize":8, "members":[]}
|
||||||
|
]}
|
||||||
|
]}
|
||||||
|
]}
|
||||||
|
]}
|
||||||
|
]'''
|
||||||
|
Loading…
Reference in New Issue
Block a user