| 481 | } |
| 482 | |
| 483 | TEST_F(TestReplaceBoolean, ReplaceWithMask) { |
| 484 | std::vector<ReplaceWithMaskCase> cases = { |
| 485 | {this->array("[]"), this->mask_scalar(false), this->array("[]"), this->array("[]")}, |
| 486 | {this->array("[]"), this->mask_scalar(true), this->array("[]"), this->array("[]")}, |
| 487 | {this->array("[]"), this->null_mask_scalar(), this->array("[]"), this->array("[]")}, |
| 488 | |
| 489 | {this->array("[true]"), this->mask_scalar(false), this->array("[]"), |
| 490 | this->array("[true]")}, |
| 491 | {this->array("[true]"), this->mask_scalar(true), this->array("[false]"), |
| 492 | this->array("[false]")}, |
| 493 | {this->array("[true]"), this->null_mask_scalar(), this->array("[]"), |
| 494 | this->array("[null]")}, |
| 495 | |
| 496 | {this->array("[false, false]"), this->mask_scalar(false), this->scalar("true"), |
| 497 | this->array("[false, false]")}, |
| 498 | {this->array("[false, false]"), this->mask_scalar(true), this->scalar("true"), |
| 499 | this->array("[true, true]")}, |
| 500 | {this->array("[false, false]"), this->mask_scalar(true), this->scalar("null"), |
| 501 | this->array("[null, null]")}, |
| 502 | |
| 503 | {this->array("[]"), this->mask("[]"), this->array("[]"), this->array("[]")}, |
| 504 | {this->array("[true, true, true, true]"), |
| 505 | this->mask("[false, false, false, false]"), this->array("[]"), |
| 506 | this->array("[true, true, true, true]")}, |
| 507 | {this->array("[true, true, true, true]"), this->mask("[true, true, true, true]"), |
| 508 | this->array("[false, false, false, false]"), |
| 509 | this->array("[false, false, false, false]")}, |
| 510 | {this->array("[true, true, true, true]"), this->mask("[null, null, null, null]"), |
| 511 | this->array("[]"), this->array("[null, null, null, null]")}, |
| 512 | {this->array("[true, true, true, null]"), |
| 513 | this->mask("[false, false, false, false]"), this->array("[]"), |
| 514 | this->array("[true, true, true, null]")}, |
| 515 | {this->array("[true, true, true, null]"), this->mask("[true, true, true, true]"), |
| 516 | this->array("[false, false, false, false]"), |
| 517 | this->array("[false, false, false, false]")}, |
| 518 | {this->array("[true, true, true, null]"), this->mask("[null, null, null, null]"), |
| 519 | this->array("[]"), this->array("[null, null, null, null]")}, |
| 520 | {this->array("[true, true, true, true, true, true]"), |
| 521 | this->mask("[false, false, null, null, true, true]"), this->array("[false, null]"), |
| 522 | this->array("[true, true, null, null, false, null]")}, |
| 523 | {this->array("[null, null, null, null, null, null]"), |
| 524 | this->mask("[false, false, null, null, true, true]"), this->array("[false, null]"), |
| 525 | this->array("[null, null, null, null, false, null]")}, |
| 526 | {this->array("[true, null, true]"), this->mask("[false, true, false]"), |
| 527 | this->array("[true]"), this->array("[true, true, true]")}, |
| 528 | |
| 529 | {this->array("[]"), this->mask("[]"), this->scalar("true"), this->array("[]")}, |
| 530 | {this->array("[null, false, true]"), this->mask("[true, false, false]"), |
| 531 | this->scalar("false"), this->array("[false, false, true]")}, |
| 532 | {this->array("[false, false]"), this->mask("[true, true]"), this->scalar("true"), |
| 533 | this->array("[true, true]")}, |
| 534 | {this->array("[false, false]"), this->mask("[true, true]"), this->scalar("null"), |
| 535 | this->array("[null, null]")}, |
| 536 | {this->array("[false, false, false]"), this->mask("[false, null, true]"), |
| 537 | this->scalar("true"), this->array("[false, null, true]")}, |
| 538 | {this->array("[null, null]"), this->mask("[true, true]"), |
| 539 | this->array("[true, true]"), this->array("[true, true]")}, |
| 540 | }; |
nothing calls this directly
no test coverage detected