rustdoc-json: Fix test so it actuall checks things · rust-lang/rust@22e1576

File tree

1 file changed

lines changed

  • tests/rustdoc-json/reexport

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -2,11 +2,12 @@

22
33

mod repeat_n {

44

#[doc(hidden)]

5+

/// not here

56

pub struct RepeatN {}

67

}

78
9+

/// not here

810

pub use repeat_n::RepeatN;

911
1012

// @count "$.index[*][?(@.name=='pub_use_doc_hidden')].inner.items[*]" 0

11-

// @!has "$.index[*][?(@.kind=='struct')]"

12-

// @!has "$.index[*][?(@.kind=='import')]"

13+

// @!has "$.index[*][?(@.docs == 'not here')]"