use super::*; from_examples!(DMN_3_1142); static_context!(CTX, "{}"); #[bench] fn _0001(b: &mut Bencher) { let invocable = "decision001"; let expected = "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 _0002(b: &mut Bencher) { let invocable = "decision002"; let expected = "-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 _0003(b: &mut Bencher) { let invocable = "decision003"; let expected = "1.12"; 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.12"; 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 = "null(expected 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] #[ignore] fn _0006(b: &mut Bencher) { let invocable = "decision006"; let expected = "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 _0007(b: &mut Bencher) { let invocable = "decision007"; let expected = "null([core::round down] 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::round down] 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(expected 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 _0010(b: &mut Bencher) { let invocable = "decision010"; let expected = "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 _0011(b: &mut Bencher) { let invocable = "decision011_a"; let expected = "null(expected 2 parameters, actual number of parameters is 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] #[ignore] fn _0012(b: &mut Bencher) { let invocable = "decision011_b"; let expected = "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 _0013(b: &mut Bencher) { let invocable = "decision012"; let expected = "null(expected 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 _0014(b: &mut Bencher) { let invocable = "decision013"; let expected = "null([core::round down] 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 = "decision014"; let expected = "null([core::round down] 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] #[ignore] fn _0016(b: &mut Bencher) { let invocable = "decision015"; let expected = "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] #[ignore] fn _0017(b: &mut Bencher) { let invocable = "decision016_a"; let expected = "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 _0018(b: &mut Bencher) { let invocable = "decision016_b"; let expected = "null([core::round_down] invalid scale, allowed range is -6111..6144, actual is -6112)"; 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 _0019(b: &mut Bencher) { let invocable = "decision017_a"; let expected = "5.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 _0020(b: &mut Bencher) { let invocable = "decision017_b"; let expected = "null([core::round_down] invalid scale, allowed range is -6111..6144, actual is 6177)"; 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 _0021(b: &mut Bencher) { let invocable = "decision017_b"; let expected = "null([core::round_down] invalid scale, allowed range is -6111..6144, actual is 6177)"; assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX, expected); iter!(b, MODEL_EVALUATOR.evaluate_invocable(&MODEL_NAMESPACE, &MODEL_NAME, invocable, &CTX)); }