mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-13 22:06:55 +00:00
78 lines
1.9 KiB
TOML
78 lines
1.9 KiB
TOML
includes = ["string"]
|
|
[cases]
|
|
[cases.empty]
|
|
oil_skip = 'needs updating for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/311
|
|
param_types = ["std::string&"]
|
|
setup = "return {};"
|
|
expect_json = '''
|
|
[
|
|
{
|
|
"typeName": "string",
|
|
"isTypedef": true,
|
|
"staticSize": 32,
|
|
"dynamicSize": 0,
|
|
"exclusiveSize": 0,
|
|
"members": [
|
|
{
|
|
"staticSize": 32,
|
|
"dynamicSize": 0,
|
|
"exclusiveSize": 32,
|
|
"length": 0,
|
|
"capacity": 15,
|
|
"elementStaticSize": 1
|
|
}
|
|
]
|
|
}
|
|
]
|
|
'''
|
|
[cases.sso]
|
|
oil_skip = 'needs updating for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/311
|
|
param_types = ["std::string&"]
|
|
setup = 'return {"012345"};'
|
|
expect_json = '''
|
|
[
|
|
{
|
|
"typeName": "string",
|
|
"isTypedef": true,
|
|
"staticSize": 32,
|
|
"dynamicSize": 0,
|
|
"exclusiveSize": 0,
|
|
"members": [
|
|
{
|
|
"staticSize": 32,
|
|
"dynamicSize": 0,
|
|
"exclusiveSize": 32,
|
|
"length": 6,
|
|
"capacity": 15,
|
|
"elementStaticSize": 1
|
|
}
|
|
]
|
|
}
|
|
]
|
|
'''
|
|
[cases.heap_allocated]
|
|
oil_skip = 'needs updating for treebuilder v2' # https://github.com/facebookexperimental/object-introspection/issues/311
|
|
param_types = ["std::string&"]
|
|
setup = 'return {"abcdefghijklmnopqrstuvwxzy"};'
|
|
expect_json = '''
|
|
[
|
|
{
|
|
"typeName": "string",
|
|
"isTypedef": true,
|
|
"staticSize": 32,
|
|
"dynamicSize": 26,
|
|
"exclusiveSize": 0,
|
|
"members": [
|
|
{
|
|
"staticSize": 32,
|
|
"dynamicSize": 26,
|
|
"exclusiveSize": 58,
|
|
"length": 26,
|
|
"capacity": 26,
|
|
"elementStaticSize": 1
|
|
}
|
|
]
|
|
}
|
|
]
|
|
'''
|