use typed_test_gen::test_with; struct MockStruct { _a: u32, } enum MockEnum { _FirstVariant, _SecondVariant, _ThirdVariant } union MockUnion { _a: u32, _b: u64 } struct MockGenericStruct { _a: T, } mod module { pub struct MockStructInModule { _a: u32, } pub struct MockGenericStructInModule { _a: T, } } #[test_with( u32, String, MockStruct, MockEnum, MockUnion, MockGenericStruct, MockGenericStruct, module::MockStructInModule, module::MockGenericStructInModule, module::MockGenericStructInModule, MockGenericStruct> )] fn test_struct() { assert!(true); } #[test_with( u32, String, MockStruct, MockEnum, MockUnion, MockGenericStruct, MockGenericStruct, module::MockStructInModule, module::MockGenericStructInModule, module::MockGenericStructInModule, MockGenericStruct> )] #[should_panic] fn test_struct_fail() { assert!(false); } #[test_with( u32, String, MockStruct, MockEnum, MockUnion, MockGenericStruct, MockGenericStruct, module::MockStructInModule, module::MockGenericStructInModule, module::MockGenericStructInModule, MockGenericStruct> )] #[ignore] fn test_ignored() { unreachable!("This test should actually be ignored"); }