Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cast_checks/tests/inner_attribute_example.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
use assert_cmd::Command;
use std::env::remove_var;
use tempfile::tempdir;

#[ctor::ctor]
fn initialize() {
remove_var("CARGO_TERM_COLOR");
}

#[test]
fn build() {
run_command("build", |mut command| {
command.env("CAST_CHECKS_LOG", "1");
command.assert().success().stdout(
"\
cast_checks rewriting `x as u16` at src/lib.rs:0:0
cast_checks not descending into `mod c ;` at src/lib.rs:0:0
cast_checks not descending into `mod c;` at src/lib.rs:0:0
",
);
});
Expand Down