0491fdad6f
Rustdoc json tests: New @hasexact test command Alot of the time, we wanted to assert that a module had an exact set of items. Most of the time this was done by asserting that the ```@count``` of the module was `n`, and then doing `n` ```@has``` checks on the module. This was tedious, so often shortcuts were done. This PR adds a new command to jsondocck to allow consistently expressing this behavior, and then uses it to clean up the tests. ``@rustbot`` modify labels: +A-rustdoc-json +A-testsuite |
||
---|---|---|
.. | ||
auxiliary | ||
export_extern_crate_as_self.rs | ||
glob_extern.rs | ||
glob_private.rs | ||
in_root_and_mod_pub.rs | ||
in_root_and_mod.rs | ||
macro.rs | ||
private_twice_one_inline.rs | ||
private_two_names.rs | ||
rename_private.rs | ||
rename_public.rs | ||
same_type_reexported_more_than_once.rs | ||
simple_private.rs | ||
simple_public.rs |