cargo-crap4rust 0.8.2

Cargo subcommand for computing CRAP scores across Rust crates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2026 Umberto Gotti <umberto.gotti@umbertogotti.dev>
// Licensed under the MIT License
// SPDX-License-Identifier: MIT

use crap4rust::analysis::normalize_path::normalize_path;
use std::path::Path;

#[test]
fn normalize_path_replaces_backslashes() {
    // Arrange & Act
    let result = normalize_path(Path::new("C:\\project\\src\\lib.rs"));

    // Assert
    assert!(!result.contains('\\'));
}