object-introspection/test/integration/std_reference_wrapper.toml
Jake Hillion 5071519e45 oil v2
2023-08-23 15:59:53 +01:00

23 lines
1.1 KiB
TOML

includes = ["functional"]
[cases]
[cases.int]
oil_skip = 'not implemented for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/307
param_types = ["const std::reference_wrapper<int>&"]
setup = "return std::ref(*new int(1));"
expect_json = '[{"staticSize":8, "dynamicSize":4, "length":1, "capacity":1, "elementStaticSize":4}]'
[cases.vector]
oil_skip = 'not implemented for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/307
param_types = ["const std::vector<std::reference_wrapper<int>>&"]
setup = "return {{std::ref(*new int(1)), std::ref(*new int(2)), std::ref(*new int(3))}};"
expect_json = '''[{
"staticSize":24,
"dynamicSize":36,
"length":3,
"capacity":3,
"elementStaticSize":8,
"members":[
{"staticSize":8, "dynamicSize":4, "length":1, "capacity":1, "elementStaticSize":4},
{"staticSize":8, "dynamicSize":4, "length":1, "capacity":1, "elementStaticSize":4},
{"staticSize":8, "dynamicSize":4, "length":1, "capacity":1, "elementStaticSize":4}
]}]'''