object-introspection/test/integration/ignored.toml
Alastair Robertson 2060a0491e CodeGen v2: Enable independent running without CodeGen v1
Create DrgnExporter to translate Type Graph "Type" nodes into drgn_type
structs, suitable for use in OICache and TreeBuilder.
2023-12-15 14:57:24 +00:00

39 lines
873 B
TOML

definitions = '''
struct Foo {
int a, b, c;
};
struct Bar {
std::string a, b, c;
};
'''
[cases]
[cases.a]
skip = 'v2 hides the member entirely when it should show it with static size' # todo: github issue
param_types = ["const Bar&"]
setup = """
return Bar{
"The first member of the struct Bar",
"The second member of the struct Bar",
"The 3rd member of the struct Bar"
};
"""
config_suffix = """
[[codegen.ignore]]
type = "Foo"
members = ["a"]
[[codegen.ignore]]
type = "Bar"
members = ["b"]
"""
expect_json = '''[{
"staticSize":96,
"dynamicSize":66,
"members":[
{"name":"a", "staticSize":32, "dynamicSize":34},
{"name":"b", "staticSize":32, "dynamicSize":0},
{"name":"c", "staticSize":32, "dynamicSize":32}
]}]'''