Skip to main content

Crate beady_eye

Crate beady_eye 

Source
Expand description

The library bdi is: the modules it holds, and how far into them a test may reach.

bdi and the tests under tests/ are the only consumers of this library, and a pub module is reachable by definition — so pub mod on every line here is what switches dead_code off across the whole crate. These modules are private instead, and the lint says so when nothing production reaches an item.

The tests reach further in than bdi does. testing opens the five they name back up, and cargo enables it for exactly the builds that compile tests, because the package dev-depends on itself. So cargo build sees the narrow surface, cargo test the wide one, and one line here decides both. tui takes no gate: no test names it, so it is private in every build.

Modules§

cli
What bdi does when it is run: the arguments it takes, the config those arguments resolve against, and whether the snapshot is drawn or printed.