From c897deddb8ed9471cd739fa5ea763d47dbd9a0e3 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Sat, 3 Jun 2023 12:00:37 -0700 Subject: [PATCH] rustdoc-search: add test case for `bufread -> result` --- tests/rustdoc-js-std/bufread-fill-buf.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/rustdoc-js-std/bufread-fill-buf.js diff --git a/tests/rustdoc-js-std/bufread-fill-buf.js b/tests/rustdoc-js-std/bufread-fill-buf.js new file mode 100644 index 00000000000..a079f32b7c0 --- /dev/null +++ b/tests/rustdoc-js-std/bufread-fill-buf.js @@ -0,0 +1,16 @@ +// ignore-order + +const QUERY = [ + 'bufread -> result', +]; + +const EXPECTED = [ + { + 'others': [ + { 'path': 'std::io::Split', 'name': 'next' }, + { 'path': 'std::boxed::Box', 'name': 'fill_buf' }, + { 'path': 'std::io::Chain', 'name': 'fill_buf' }, + { 'path': 'std::io::Take', 'name': 'fill_buf' }, + ], + }, +];