Skip to content

Commit 894142d

Browse files
Add back the substring test
1 parent 2002b4b commit 894142d

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/test/rustdoc-js/substring.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const QUERY = 'waker_from';
2+
3+
const EXPECTED = {
4+
'others': [
5+
{ 'path': 'substring::SuperWaker', 'name': 'local_waker_from_nonlocal' },
6+
{ 'path': 'substring::SuperWakerTask', 'name': 'local_waker_from_nonlocal' },
7+
],
8+
};

src/test/rustdoc-js/substring.rs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
pub struct SuperWaker;
2+
3+
impl SuperWaker {
4+
pub fn local_waker_from_nonlocal() {}
5+
pub fn local_waker_frm_nonlocal() {}
6+
pub fn some_method() {}
7+
pub fn some_other_method() {}
8+
pub fn waker_non_local() {}
9+
pub fn from_non_local() {}
10+
}
11+
12+
pub struct SuperWakerTask;
13+
14+
impl SuperWakerTask {
15+
pub fn local_waker_from_nonlocal() {}
16+
pub fn local_waker_frm_nonlocal() {}
17+
pub fn some_method() {}
18+
pub fn some_other_method() {}
19+
pub fn waker_non_local() {}
20+
pub fn from_non_local() {}
21+
}

0 commit comments

Comments
 (0)