# This test checks that we can correctly distinguish between types with the same # name in different namespaces. includes = ["queue", "stack"] definitions = ''' namespace nsA { struct Foo { int x; }; } // namespace nsA namespace nsB { struct Foo { int y; int z; }; } // namespace nsB ''' [cases] [cases.queue] param_types = ["const std::queue>&"] setup = "return std::queue>({{ns_namespaces::nsA::Foo(), ns_namespaces::nsB::Foo()}});" expect_json = '''[{ "typeName": "queue, std::deque, std::allocator > > >", "staticSize": 80, "dynamicSize": 12, "length": 1, "capacity": 1, "elementStaticSize": 12 }]''' [cases.stack] param_types = ["const std::stack>&"] setup = "return std::stack>({{ns_namespaces::nsA::Foo(), ns_namespaces::nsB::Foo()}});" expect_json = '''[{ "typeName": "stack, std::deque, std::allocator > > >", "staticSize": 80, "dynamicSize": 12, "length": 1, "capacity": 1, "elementStaticSize": 12 }]'''