object-introspection/test/integration/thrift_namespaces.toml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
604 B
TOML
Raw Normal View History

2022-12-19 14:37:51 +00:00
thrift_definitions = '''
namespace cpp2 namespaceA.namespaceB
struct TTTTT {
1: i32 a;
2: i32 b;
3: i32 c;
}
'''
[cases]
[cases.a]
param_types = ["const namespaceA::namespaceB::TTTTT&"]
setup = '''
namespaceA::namespaceB::TTTTT ret;
return ret;
'''
expect_json = '''[{
"staticSize":16,
"dynamicSize":0,
"members":[
{"name":"__fbthrift_field_a", "staticSize":4},
{"name":"__fbthrift_field_b", "staticSize":4},
{"name":"__fbthrift_field_c", "staticSize":4},
{"name":"__isset", "staticSize":3}
]}]'''