()
| 62 | |
| 63 | #[test] |
| 64 | fn test_arithmetic_needs_wrapping() { |
| 65 | let conn = setup_test_db(); |
| 66 | |
| 67 | // Test 2: Arithmetic operations SHOULD be wrapped |
| 68 | let sql = "SELECT price * 1.1 FROM products"; |
| 69 | let result = rewrite_query(&conn, sql).unwrap(); |
| 70 | println!("Arithmetic SELECT rewritten to: {result}"); |
| 71 | |
| 72 | // Arithmetic operations should use decimal functions |
| 73 | assert!(result.contains("decimal_mul")); |
| 74 | } |
| 75 | |
| 76 | #[test] |
| 77 | fn test_comparison_needs_wrapping() { |
nothing calls this directly
no test coverage detected