gfx-rs/wgpu

Enable `clippy::tests_outside_test_module` lint

Open

#6.106 geöffnet am 12. Aug. 2024

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (703 Forks)batch import
area: infrastructuregood first issuetype: enhancement

Repository-Metriken

Stars
 (9.290 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 10T 7h) (61 gemergte PRs in 30 T)

Beschreibung

There's a whole bunch of tests that aren't in test modules. This should be solved once and for all using this clippy lint https://rust-lang.github.io/rust-clippy/master/index.html#/tests_outside_test_module

Not doing so means that the tests will be unnecessarily compiled as part of non test builds

Contributor Guide