2022-05-02 21:51:45 +00:00
|
|
|
// exact-check
|
|
|
|
|
|
|
|
const QUERY = [
|
|
|
|
'Aaaaaaa -> u32',
|
|
|
|
'Aaaaaaa -> bool',
|
|
|
|
'Aaaaaaa -> usize',
|
|
|
|
'Read -> u64',
|
2023-03-01 01:17:59 +00:00
|
|
|
'trait:Read -> u64',
|
|
|
|
'struct:Read -> u64',
|
2022-05-02 21:51:45 +00:00
|
|
|
'bool -> u64',
|
|
|
|
'Ddddddd -> u64',
|
|
|
|
'-> Ddddddd'
|
|
|
|
];
|
|
|
|
|
|
|
|
const EXPECTED = [
|
|
|
|
{
|
|
|
|
// Aaaaaaa -> u32
|
|
|
|
'others': [
|
|
|
|
{ 'path': 'generics_impl::Aaaaaaa', 'name': 'bbbbbbb' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Aaaaaaa -> bool
|
|
|
|
'others': [
|
|
|
|
{ 'path': 'generics_impl::Aaaaaaa', 'name': 'ccccccc' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Aaaaaaa -> usize
|
|
|
|
'others': [
|
|
|
|
{ 'path': 'generics_impl::Aaaaaaa', 'name': 'read' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Read -> u64
|
|
|
|
'others': [
|
|
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'eeeeeee' },
|
|
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'ggggggg' },
|
|
|
|
],
|
|
|
|
},
|
2023-03-01 01:17:59 +00:00
|
|
|
{
|
|
|
|
// trait:Read -> u64
|
|
|
|
'others': [
|
|
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'eeeeeee' },
|
|
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'ggggggg' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// struct:Read -> u64
|
|
|
|
'others': [],
|
|
|
|
},
|
2022-05-02 21:51:45 +00:00
|
|
|
{
|
|
|
|
// bool -> u64
|
|
|
|
'others': [
|
|
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'fffffff' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Ddddddd -> u64
|
|
|
|
'others': [
|
|
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'ggggggg' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2022-05-23 19:06:16 +00:00
|
|
|
// -> Ddddddd
|
|
|
|
'others': [
|
2022-05-02 21:51:45 +00:00
|
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'hhhhhhh' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|