1
Fork 0

Add tests for type-based search

This commit is contained in:
Guillaume Gomez 2023-09-01 14:31:01 +02:00
parent 09160b3f45
commit 05eda41658
3 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,25 @@
// exact-check
const EXPECTED = [
{
'query': 'sac -> usize',
'others': [
{ 'path': 'full_path_function::b::Sac', 'name': 'bar' },
{ 'path': 'full_path_function::b::Sac', 'name': 'len' },
{ 'path': 'full_path_function::sac::Sac', 'name': 'len' },
],
},
{
'query': 'b::sac -> usize',
'others': [
{ 'path': 'full_path_function::b::Sac', 'name': 'bar' },
{ 'path': 'full_path_function::b::Sac', 'name': 'len' },
],
},
{
'query': 'b::sac -> u32',
'others': [
{ 'path': 'full_path_function::b::Sac', 'name': 'bar2' },
],
},
];