object-introspection/test/integration/inheritance_multiple.toml

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

48 lines
1.5 KiB
TOML
Raw Normal View History

2022-12-19 14:37:51 +00:00
definitions = '''
struct Base_1 {
int a;
};
struct Base_2 {
int b;
};
struct Base_3 {
int c;
};
struct Derived_1: Base_2, Base_3 {
int d;
};
struct Base_4 {
int e;
};
struct Derived_2: Base_1, Derived_1, Base_4 {
int f;
};
'''
[cases]
[cases.a]
param_types = ["const Derived_2&"]
2023-01-20 14:05:36 +00:00
setup = 'return {};'
2022-12-19 14:37:51 +00:00
expect_json = '''[{
"staticSize":24,
"dynamicSize":0,
"members":[
{"name":"a", "staticSize":4, "dynamicSize":0, "typeName": "int"},
{"name":"b", "staticSize":4, "dynamicSize":0, "typeName": "int"},
{"name":"c", "staticSize":4, "dynamicSize":0, "typeName": "int"},
{"name":"d", "staticSize":4, "dynamicSize":0, "typeName": "int"},
{"name":"e", "staticSize":4, "dynamicSize":0, "typeName": "int"},
{"name":"f", "staticSize":4, "dynamicSize":0, "typeName": "int"}
]}]'''
2023-08-16 20:40:36 +01:00
expect_json_v2 = '''[{
"staticSize":24,
"exclusiveSize":0,
"members":[
{"name":"a", "staticSize":4, "exclusiveSize":4, "typeNames": ["int32_t"]},
{"name":"b", "staticSize":4, "exclusiveSize":4, "typeNames": ["int32_t"]},
{"name":"c", "staticSize":4, "exclusiveSize":4, "typeNames": ["int32_t"]},
{"name":"d", "staticSize":4, "exclusiveSize":4, "typeNames": ["int32_t"]},
{"name":"e", "staticSize":4, "exclusiveSize":4, "typeNames": ["int32_t"]},
{"name":"f", "staticSize":4, "exclusiveSize":4, "typeNames": ["int32_t"]}
]}]'''