Add test for primitive search

This commit is contained in:
Guillaume Gomez 2021-01-30 17:39:44 +01:00
parent 198e3aba8f
commit d5243e3a97
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,25 @@
// exact-check
const QUERY = [
"i32",
"str",
"TotoIsSomewhere",
];
const EXPECTED = [
{
'in_args': [
{ 'path': 'primitive', 'name': 'foo' },
],
},
{
'returned': [
{ 'path': 'primitive', 'name': 'foo' },
],
},
{
'others': [],
'in_args': [],
'returned': [],
},
];

View File

@ -0,0 +1,5 @@
pub fn foo(i: i32) -> &'static str {
"hello"
}
pub fn foo2<TotoIsSomewhere>(i: &TotoIsSomewhere, j: TotoIsSomewhere) {}