includes = ["queue"] [cases] [cases.int_empty] oil_skip = 'not implemented for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/309 param_types = ["const std::priority_queue&"] setup = "return {};" expect_json = '''[{ "typeName": "std::priority_queue>, less>", "staticSize": 32, "dynamicSize": 0, "length": 0, "capacity": 0, "elementStaticSize": 4, "members": [ { "typeName": "std::vector>", "staticSize": 24, "dynamicSize": 0, "length": 0, "capacity": 0, "elementStaticSize": 4 } ]}]''' [cases.int_some] oil_skip = 'not implemented for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/309 param_types = ["const std::priority_queue&"] setup = "return std::priority_queue({}, {3,2,1});" expect_json = '''[{ "typeName": "std::priority_queue>, less>", "staticSize": 32, "dynamicSize": 12, "length": 3, "capacity": 3, "elementStaticSize": 4, "members": [ { "typeName": "std::vector>", "staticSize": 24, "dynamicSize": 12, "length": 3, "capacity": 3, "elementStaticSize": 4 } ]}]''' [cases.adapter_deque_empty] oil_skip = 'not implemented for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/309 param_types = ["const std::priority_queue>&"] setup = "return {};" expect_json = '''[{ "typeName": "std::priority_queue>, less>", "staticSize": 88, "dynamicSize": 0, "length": 0, "capacity": 0, "elementStaticSize": 4, "members": [ { "typeName": "std::deque>", "staticSize": 80, "dynamicSize": 0, "length": 0, "capacity": 0, "elementStaticSize": 4 } ]}]''' [cases.adapter_deque_some] oil_skip = 'not implemented for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/309 param_types = ["const std::priority_queue>&"] setup = "return std::priority_queue>({}, {3,2,1});" expect_json = '''[{ "typeName": "std::priority_queue>, less>", "staticSize": 88, "dynamicSize": 12, "length": 3, "capacity": 3, "elementStaticSize": 4, "members": [ { "typeName": "std::deque>", "staticSize": 80, "dynamicSize": 12, "length": 3, "capacity": 3, "elementStaticSize": 4 } ]}]'''