object-introspection/test/integration/std_string.toml

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

78 lines
1.9 KiB
TOML
Raw Normal View History

2022-12-19 14:37:51 +00:00
includes = ["string"]
[cases]
[cases.empty]
2023-08-16 20:40:36 +01:00
oil_skip = 'needs updating for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/311
2022-12-19 14:37:51 +00:00
param_types = ["std::string&"]
setup = "return {};"
expect_json = '''
[
{
"typeName": "string",
"isTypedef": true,
"staticSize": 32,
"dynamicSize": 0,
2023-03-03 20:09:51 +00:00
"exclusiveSize": 0,
2022-12-19 14:37:51 +00:00
"members": [
{
"staticSize": 32,
"dynamicSize": 0,
2023-03-03 20:09:51 +00:00
"exclusiveSize": 32,
2022-12-19 14:37:51 +00:00
"length": 0,
"capacity": 15,
"elementStaticSize": 1
}
]
}
]
'''
[cases.sso]
2023-08-16 20:40:36 +01:00
oil_skip = 'needs updating for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/311
2022-12-19 14:37:51 +00:00
param_types = ["std::string&"]
setup = 'return {"012345"};'
expect_json = '''
[
{
"typeName": "string",
"isTypedef": true,
"staticSize": 32,
"dynamicSize": 0,
2023-03-03 20:09:51 +00:00
"exclusiveSize": 0,
2022-12-19 14:37:51 +00:00
"members": [
{
"staticSize": 32,
"dynamicSize": 0,
2023-03-03 20:09:51 +00:00
"exclusiveSize": 32,
2022-12-19 14:37:51 +00:00
"length": 6,
"capacity": 15,
"elementStaticSize": 1
}
]
}
]
'''
[cases.heap_allocated]
2023-08-16 20:40:36 +01:00
oil_skip = 'needs updating for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/311
2022-12-19 14:37:51 +00:00
param_types = ["std::string&"]
setup = 'return {"abcdefghijklmnopqrstuvwxzy"};'
expect_json = '''
[
{
"typeName": "string",
"isTypedef": true,
"staticSize": 32,
"dynamicSize": 26,
2023-03-03 20:09:51 +00:00
"exclusiveSize": 0,
2022-12-19 14:37:51 +00:00
"members": [
{
"staticSize": 32,
"dynamicSize": 26,
2023-03-03 20:09:51 +00:00
"exclusiveSize": 58,
2022-12-19 14:37:51 +00:00
"length": 26,
"capacity": 26,
"elementStaticSize": 1
}
]
}
]
'''