rust/tests/rustdoc-json/structs/plain_all_pub.rs
Alona Enraght-Moony 7ab71c417b tests/rustdoc-json: replace $.index[*][? with $.index[?
Done automatically with VSCode.
2025-03-21 00:48:09 +00:00

11 lines
442 B
Rust

pub struct Demo {
pub x: i32,
pub y: i32,
}
//@ set x = "$.index[?(@.name=='x')].id"
//@ set y = "$.index[?(@.name=='y')].id"
//@ is "$.index[?(@.name=='Demo')].inner.struct.kind.plain.fields[0]" $x
//@ is "$.index[?(@.name=='Demo')].inner.struct.kind.plain.fields[1]" $y
//@ count "$.index[?(@.name=='Demo')].inner.struct.kind.plain.fields[*]" 2
//@ is "$.index[?(@.name=='Demo')].inner.struct.kind.plain.has_stripped_fields" false