()
| 600 | |
| 601 | #[test] |
| 602 | fn null_bitmap_check() { |
| 603 | let schema = crm_schema(); |
| 604 | let decoder = TupleDecoder::new(&schema); |
| 605 | |
| 606 | let tuple = encode_crm_row(&[ |
| 607 | Value::Integer(1), |
| 608 | Value::String("x".into()), |
| 609 | Value::Null, |
| 610 | Value::Decimal(rust_decimal::Decimal::ZERO), |
| 611 | Value::Null, |
| 612 | ]); |
| 613 | |
| 614 | assert!(!decoder.is_null(&tuple, 0).unwrap()); // id |
| 615 | assert!(!decoder.is_null(&tuple, 1).unwrap()); // name |
| 616 | assert!(decoder.is_null(&tuple, 2).unwrap()); // email |
| 617 | assert!(!decoder.is_null(&tuple, 3).unwrap()); // balance |
| 618 | assert!(decoder.is_null(&tuple, 4).unwrap()); // active |
| 619 | } |
| 620 | |
| 621 | #[test] |
| 622 | fn column_out_of_range() { |
nothing calls this directly
no test coverage detected