Skip to content

Commit

Permalink
Add an initializer to the tests for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Mar 6, 2024
1 parent a09c814 commit 18accee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ optional = true
rand = "0.8.5"
rand_chacha = "0.3.1"
lfsr = "0.3.0"
ctor = "0.2.7"

[lib]
name = "clvm_tools_rs"
Expand Down
7 changes: 7 additions & 0 deletions src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
mod classic;
mod compiler;
mod util;

use crate::classic::clvm_tools::log;

#[ctor::ctor]
fn init() {
log::init();
}

0 comments on commit 18accee

Please sign in to comment.