Skip to content
Permalink
Browse files

Add back the substring test

  • Loading branch information...
GuillaumeGomez committed Apr 4, 2019
1 parent 2002b4b commit 894142de5d55d4efd249c5d6c72cffa99a3a1914
Showing with 29 additions and 0 deletions.
  1. +8 −0 src/test/rustdoc-js/substring.js
  2. +21 −0 src/test/rustdoc-js/substring.rs
@@ -0,0 +1,8 @@
const QUERY = 'waker_from';

const EXPECTED = {
'others': [
{ 'path': 'substring::SuperWaker', 'name': 'local_waker_from_nonlocal' },
{ 'path': 'substring::SuperWakerTask', 'name': 'local_waker_from_nonlocal' },
],
};
@@ -0,0 +1,21 @@
pub struct SuperWaker;

impl SuperWaker {
pub fn local_waker_from_nonlocal() {}
pub fn local_waker_frm_nonlocal() {}
pub fn some_method() {}
pub fn some_other_method() {}
pub fn waker_non_local() {}
pub fn from_non_local() {}
}

pub struct SuperWakerTask;

impl SuperWakerTask {
pub fn local_waker_from_nonlocal() {}
pub fn local_waker_frm_nonlocal() {}
pub fn some_method() {}
pub fn some_other_method() {}
pub fn waker_non_local() {}
pub fn from_non_local() {}
}

0 comments on commit 894142d

Please sign in to comment.
You can’t perform that action at this time.