ferro-macros 0.2.62

Procedural macros for Ferro framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Trybuild UI tests for the `#[resource_get]` / `#[resource_post]` proc-macros.
//!
//! - `tests/ui/resource/pass/*.rs` — fixtures that MUST compile cleanly.
//! - `tests/ui/resource/fail/*.rs` + `*.stderr` — fixtures that MUST emit the
//!   exact compile error captured in the matching `.stderr` snapshot.
//!
//! Update `.stderr` snapshots after intentional message changes:
//!     TRYBUILD=overwrite cargo test -p ferro-macros --test resource_macro

#[test]
fn resource_macro_ui() {
    let t = trybuild::TestCases::new();
    t.pass("tests/ui/resource/pass/*.rs");
    t.compile_fail("tests/ui/resource/fail/*.rs");
}