mindsbackyard / galvanic-test

A test environment for rust: test cases & suites, fixtures, and parameterised test cases
Apache License 2.0
52 stars 3 forks source link

warning: function is never used: `noop` #5

Closed austinbes closed 7 years ago

austinbes commented 7 years ago

On my machine (running the latest nightly), I get a warning with the following code:

#[macro_use] extern crate galvanic_test;

test_suite! {
    test dummy() {
        assert!(true);
    }
}

Warning:

warning: function is never used: `noop`
 --> src/lib.rs:3:1
  |
3 | / test_suite! {
4 | |     test dummy() {
5 | |         assert!(true);
6 | |     }
7 | | }
  | |_^
  |
  = note: #[warn(dead_code)] on by default
  = note: this error originates in a macro outside of the current crate

This is with Cargo.toml pointed explicitly at version 0.1.2

After looking through the integration tests, it looks to me like the key difference of my MWE is that it doesn't use mock integration.

mindsbackyard commented 7 years ago

fixed in v0.1.3