rust_gtest_interop Library
The rust_gtest_interop library provides a way to:
- Use a Rust function as a
gtesttestcase (using the#[gtest(...)]attribute) - Use
expect_eq!and similar macros (similar toassert_eq!but not panicking and not terminating the test when the assertion fails).
Example:
1. use rust_gtest_interop::prelude::*;
3. #[gtest(MyRustTestSuite, MyAdditionTest)]
4. fn test_addition() {
5. expect_eq!(2 + 2, 4);
6. }
