summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/full-path-function.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
commitc23a457e72abe608715ac76f076f47dc42af07a5 (patch)
tree2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /tests/rustdoc-js/full-path-function.js
parentReleasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz
rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/rustdoc-js/full-path-function.js')
-rw-r--r--tests/rustdoc-js/full-path-function.js43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/rustdoc-js/full-path-function.js b/tests/rustdoc-js/full-path-function.js
new file mode 100644
index 000000000..48be51b15
--- /dev/null
+++ b/tests/rustdoc-js/full-path-function.js
@@ -0,0 +1,43 @@
+// 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' },
+ ],
+ },
+ {
+ 'query': 'string::string -> u32',
+ 'others': [
+ { 'path': 'full_path_function::b::Sac', 'name': 'string' },
+ ],
+ },
+ {
+ 'query': 'alloc::string::string -> u32',
+ 'others': [
+ { 'path': 'full_path_function::b::Sac', 'name': 'string' },
+ ],
+ },
+ {
+ 'query': 'alloc::string -> u32',
+ 'others': [
+ { 'path': 'full_path_function::b::Sac', 'name': 'string' },
+ ],
+ },
+];