Add tests for struct variant field in search

This commit is contained in:
Guillaume Gomez 2020-01-30 13:43:54 +01:00
parent 05c6f329e7
commit 8ee30dbc1b
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,7 @@
const QUERY = 'name';
const EXPECTED = {
'others': [
{ 'path': 'struct_like_variant::Enum::Bar', 'name': 'name', 'desc': 'This is a name.' },
],
};

View File

@ -0,0 +1,8 @@
#![crate_name = "struct_like_variant"]
pub enum Enum {
Bar {
/// This is a name.
name: String
}
}