# proc-macro-tester
Macros for testing procedural macros.

Only attribute macros are supported at the moment.

## Examples

```rust
use proc_macro_tester::{assert_expands, assert_yields};

assert_expands!(
    {
        #[add_id_field(u32)]
        struct Person {
            name: String,
        }
    },
    {
        struct Person {
            id: u32,
            name: String,
        }
    }
);

assert_yields!(
    {
        #[create_struct_without_id(NewPerson)]
        struct Person {
            id: u32,
            name: String,
        }
    },
    {
        struct NewPerson {
            name: String,
        }
    }
);
```

## License
Licensed under either of

 * MIT license
   ([LICENSE-MIT](./LICENSE-MIT) or https://opensource.org/licenses/MIT)
 * Apache License, Version 2.0
   ([LICENSE-APACHE](./LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)

at your option.

### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
