oxc/crates/oxc_semantic/tests/integration/util/expect.rs
Boshen de75fb2942 refactor: compile less test binaries to speed up CI (#3414)
The semantic crate currently compiles 5 binaries for integration test, this PR merges them into one.
2024-05-26 07:21:44 +00:00

7 lines
148 B
Rust

pub trait Expect<P, R> {
#[allow(unused)]
#[must_use]
fn expect<F>(self, expectation: F) -> Self
where
F: FnOnce(P) -> R;
}