rustdoc-prettier 0.7.4

Format //! and /// comments with prettier
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use assert_cmd::cargo::cargo_bin_cmd;
use predicates::prelude::*;
use tempfile::tempdir;

#[test]
fn nonexistent_file() {
    let tempdir = tempdir().unwrap();

    let mut command = cargo_bin_cmd!("rustdoc-prettier");
    command.arg("nonexistent_file.rs");
    command.current_dir(&tempdir);
    command.assert().failure().stderr(predicate::eq(
        "Error: found no files matching pattern: nonexistent_file.rs\n",
    ));
}