use super::*; from_examples!(DMN_3_1102); static_context!(CTX, "{}"); #[bench] fn _0001(b: &mut Bencher) { let invocable = "decision001"; let expected = "2"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0002(b: &mut Bencher) { let invocable = "decision002"; let expected = "-1"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0003(b: &mut Bencher) { let invocable = "decision003"; let expected = "0"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0004(b: &mut Bencher) { let invocable = "decision004"; let expected = "1.6"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0005(b: &mut Bencher) { let invocable = "decision005"; let expected = "-1.5"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0006(b: &mut Bencher) { let invocable = "decision006"; let expected = "null([core::ceiling] invalid argument type, expected number, actual type is Null)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0007(b: &mut Bencher) { let invocable = "decision007"; let expected = "null([core::ceiling] invalid argument type, expected number, actual type is Null)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0008(b: &mut Bencher) { let invocable = "decision008"; let expected = "null([core::ceiling] invalid argument type, expected number, actual type is Null)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0009(b: &mut Bencher) { let invocable = "decision009"; let expected = "null([core::ceiling] invalid argument type, expected number, actual type is Null)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0010(b: &mut Bencher) { let invocable = "decision010"; let expected = "null(expected 1,2 parameters, actual number of parameters is 0)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0011(b: &mut Bencher) { let invocable = "decision011"; let expected = "null(expected 1,2 parameters, actual number of parameters is 3)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0012(b: &mut Bencher) { let invocable = "decision012"; let expected = "null(expected 1,2 parameters, actual number of parameters is 3)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0013(b: &mut Bencher) { let invocable = "decision013"; let expected = "null(parameter 'scale' not found)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0014(b: &mut Bencher) { let invocable = "decision014"; let expected = "null([core::ceiling] invalid argument type, expected number, actual type is string)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0015(b: &mut Bencher) { let invocable = "decision015"; let expected = "null([core::ceiling] invalid argument type, expected number, actual type is string)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0016(b: &mut Bencher) { let invocable = "decision016"; let expected = "null([core::ceiling] invalid argument type, expected number, actual type is string)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); } #[bench] fn _0017(b: &mut Bencher) { let invocable = "decision017"; let expected = "null([core::ceiling] invalid argument type, expected number, actual type is string)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); }