mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
29 lines
782 B
TOML
29 lines
782 B
TOML
thrift_definitions = '''
|
|
namespace cpp2 namespaceA.namespaceB
|
|
|
|
struct TTTTT {
|
|
1: i32 a;
|
|
2: i32 b;
|
|
3: i32 c;
|
|
}
|
|
'''
|
|
|
|
[cases]
|
|
[cases.a]
|
|
oil_skip = 'enum type template arguments do not match' # https://github.com/facebookexperimental/object-introspection/issues/297
|
|
param_types = ["const namespaceA::namespaceB::TTTTT&"]
|
|
setup = '''
|
|
namespaceA::namespaceB::TTTTT ret;
|
|
return ret;
|
|
'''
|
|
cli_options = ["-fcapture-thrift-isset"]
|
|
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}
|
|
]}]'''
|