2023-04-15 11:53:50 -07:00
|
|
|
// exact-check
|
|
|
|
|
2021-06-26 12:00:26 -07:00
|
|
|
const EXPECTED = [
|
|
|
|
{
|
2023-06-09 16:49:38 +02:00
|
|
|
'query': 'Result<SomeTrait>',
|
|
|
|
'correction': null,
|
2021-06-26 12:00:26 -07:00
|
|
|
'in_args': [
|
2024-09-24 14:31:44 -07:00
|
|
|
{
|
|
|
|
'path': 'generics_trait',
|
|
|
|
'name': 'beta',
|
|
|
|
'displayType': '`Result`<`T`, ()> -> ()',
|
|
|
|
'displayMappedNames': '',
|
|
|
|
'displayWhereClause': 'T: `SomeTrait`',
|
|
|
|
},
|
2021-06-26 12:00:26 -07:00
|
|
|
],
|
|
|
|
'returned': [
|
2024-09-24 14:31:44 -07:00
|
|
|
{
|
|
|
|
'path': 'generics_trait',
|
|
|
|
'name': 'bet',
|
|
|
|
'displayType': ' -> `Result`<`T`, ()>',
|
|
|
|
'displayMappedNames': '',
|
|
|
|
'displayWhereClause': 'T: `SomeTrait`',
|
|
|
|
},
|
2021-06-26 12:00:26 -07:00
|
|
|
],
|
|
|
|
},
|
2023-04-15 11:53:50 -07:00
|
|
|
{
|
2023-08-05 12:27:58 -07:00
|
|
|
'query': 'Resulx<SomeTrait>',
|
2023-04-15 11:53:50 -07:00
|
|
|
'in_args': [],
|
|
|
|
'returned': [],
|
|
|
|
},
|
2023-08-05 12:27:58 -07:00
|
|
|
{
|
|
|
|
'query': 'Result<SomeTraiz>',
|
|
|
|
'proposeCorrectionFrom': 'SomeTraiz',
|
|
|
|
'proposeCorrectionTo': 'SomeTrait',
|
|
|
|
},
|
2023-04-15 11:53:50 -07:00
|
|
|
{
|
2023-06-09 16:49:38 +02:00
|
|
|
'query': 'OtherThingxxxxxxxx',
|
|
|
|
'correction': null,
|
2023-04-15 11:53:50 -07:00
|
|
|
'in_args': [
|
2024-09-24 14:31:44 -07:00
|
|
|
{
|
|
|
|
'path': 'generics_trait',
|
|
|
|
'name': 'alpha',
|
|
|
|
'displayType': 'Result<`T`, ()> -> ()',
|
|
|
|
'displayMappedNames': '',
|
|
|
|
'displayWhereClause': 'T: `OtherThingxxxxxxxx`',
|
|
|
|
},
|
2023-04-15 11:53:50 -07:00
|
|
|
],
|
|
|
|
'returned': [
|
2024-09-24 14:31:44 -07:00
|
|
|
{
|
|
|
|
'path': 'generics_trait',
|
|
|
|
'name': 'alef',
|
|
|
|
'displayType': ' -> Result<`T`, ()>',
|
|
|
|
'displayMappedNames': '',
|
|
|
|
'displayWhereClause': 'T: `OtherThingxxxxxxxx`',
|
|
|
|
},
|
2023-04-15 11:53:50 -07:00
|
|
|
],
|
|
|
|
},
|
2021-06-26 12:00:26 -07:00
|
|
|
{
|
2023-06-09 16:49:38 +02:00
|
|
|
'query': 'OtherThingxxxxxxxy',
|
|
|
|
'correction': 'OtherThingxxxxxxxx',
|
2021-06-26 12:00:26 -07:00
|
|
|
'in_args': [
|
2024-09-24 14:31:44 -07:00
|
|
|
{
|
|
|
|
'path': 'generics_trait',
|
|
|
|
'name': 'alpha',
|
|
|
|
'displayType': 'Result<`T`, ()> -> ()',
|
|
|
|
'displayMappedNames': '',
|
|
|
|
'displayWhereClause': 'T: `OtherThingxxxxxxxx`',
|
|
|
|
},
|
2021-06-26 12:00:26 -07:00
|
|
|
],
|
|
|
|
'returned': [
|
2024-09-24 14:31:44 -07:00
|
|
|
{
|
|
|
|
'path': 'generics_trait',
|
|
|
|
'name': 'alef',
|
|
|
|
'displayType': ' -> Result<`T`, ()>',
|
|
|
|
'displayMappedNames': '',
|
|
|
|
'displayWhereClause': 'T: `OtherThingxxxxxxxx`',
|
|
|
|
},
|
2021-06-26 12:00:26 -07:00
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|