rust/tests/rustdoc-js/generics.js

78 lines
1.7 KiB
JavaScript
Raw Normal View History

// exact-check
const EXPECTED = [
{
2023-06-09 09:49:38 -05:00
'query': 'R<P>',
'returned': [
{ 'path': 'generics', 'name': 'alef' },
],
'in_args': [
{ 'path': 'generics', 'name': 'alpha' },
],
},
{
2023-06-09 09:49:38 -05:00
'query': 'R<struct:P>',
'returned': [
{ 'path': 'generics', 'name': 'alef' },
],
'in_args': [
{ 'path': 'generics', 'name': 'alpha' },
],
},
{
2023-06-09 09:49:38 -05:00
'query': 'R<enum:P>',
'returned': [],
'in_args': [],
},
{
2023-06-09 09:49:38 -05:00
'query': '"P"',
'others': [
{ 'path': 'generics', 'name': 'P' },
],
'returned': [
{ 'path': 'generics', 'name': 'alef' },
],
'in_args': [
{ 'path': 'generics', 'name': 'alpha' },
],
},
{
2023-06-09 09:49:38 -05:00
'query': 'P',
'returned': [
{ 'path': 'generics', 'name': 'alef' },
],
'in_args': [
{ 'path': 'generics', 'name': 'alpha' },
],
},
{
2023-06-09 09:49:38 -05:00
'query': '"ExtraCreditStructMulti"<ExtraCreditInnerMulti, ExtraCreditInnerMulti>',
'in_args': [
{ 'path': 'generics', 'name': 'extracreditlabhomework' },
],
'returned': [],
},
2021-08-23 15:19:43 -05:00
{
2023-06-09 09:49:38 -05:00
'query': 'TraitCat',
2021-08-23 15:19:43 -05:00
'in_args': [
{ 'path': 'generics', 'name': 'gamma' },
],
},
{
2023-06-09 09:49:38 -05:00
'query': 'TraitDog',
2021-08-23 15:19:43 -05:00
'in_args': [
{ 'path': 'generics', 'name': 'gamma' },
],
},
2021-08-11 13:14:26 -05:00
{
2023-06-09 09:49:38 -05:00
'query': 'Result<String>',
2021-08-11 13:14:26 -05:00
'others': [],
'returned': [
{ 'path': 'generics', 'name': 'super_soup' },
],
'in_args': [
{ 'path': 'generics', 'name': 'super_soup' },
],
},
];