use fickle::fickle; #[test] fn ui() { let t = trybuild::TestCases::new(); t.compile_fail("tests/ui/*.rs"); } #[test] #[fickle] fn default_no_return() {} #[test] #[fickle] fn default_return() -> Result<(), String> { Ok(()) } #[test] #[fickle()] fn default_parens_no_return() {} #[test] #[fickle()] fn default_parens_return() -> Result<(), String> { Ok(()) } #[test] #[fickle(retries = 5)] fn custom_retries_no_return() {} #[test] #[fickle(retries = 2)] fn custom_retries_return() -> Result<(), String> { Ok(()) } #[test] #[fickle(passes = 2)] fn custom_passes_no_return() {} #[test] #[fickle(passes = 2)] fn custom_passes_return() -> Result<(), String> { Ok(()) } #[test] #[fickle(retries = 5, passes = 4)] fn custom_both_no_return() {} #[test] #[fickle(retries = 2, passes = 3)] fn custom_both_return() -> Result<(), String> { Ok(()) } #[fickle] #[test] fn default_no_return_rev() {} #[fickle] #[test] fn default_return_rev() -> Result<(), String> { Ok(()) } #[fickle()] #[test] fn default_parens_no_return_rev() {} #[fickle()] #[test] fn default_parens_return_rev() -> Result<(), String> { Ok(()) } #[fickle(retries = 5)] #[test] fn custom_retries_no_return_rev() {} #[fickle(retries = 2)] #[test] fn custom_retries_return_rev() -> Result<(), String> { Ok(()) } #[fickle(passes = 1)] #[test] fn custom_passes_no_return_rev() {} #[fickle(passes = 2)] #[test] fn custom_passes_return_rev() -> Result<(), String> { Ok(()) } #[fickle(passes = 2, retries = 5)] #[test] fn custom_both_no_return_rev() {} #[fickle(passes = 2, retries = 2)] #[test] fn custom_both_return_rev() -> Result<(), String> { Ok(()) }