crawk 0.2.0

Dependency crawler for Rust. It crawls so you don't have to untangle
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::common::crawk_modules;
use insta_cmd::assert_cmd_snapshot;
use test_case::test_case;

// ============================================================================
// Custom path (#[path = "..."]) modules
// ============================================================================

#[test_case("custom_path"; "custom path module")]
#[test_case("aliased"; "aliased via path attribute")]
fn should_modules_use_handle_custom_path(module: &str) {
    let snapshot_name = format!("modules_{module}_custom_path");

    assert_cmd_snapshot!(
        snapshot_name,
        crawk_modules().arg("use").arg(module).arg("-r").arg("-e")
    );
}