lib/UR/DataSource/RDBMS/Operator/True.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 9 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 13 | 92.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 5 | 5 | 3030 | use strict; | |||
5 | 8 | ||||||
5 | 155 | ||||||
2 | 5 | 5 | 15 | use warnings; | |||
5 | 5 | ||||||
5 | 553 | ||||||
3 | |||||||
4 | package UR::DataSource::RDBMS::Operator::True; | ||||||
5 | |||||||
6 | sub generate_sql_for { | ||||||
7 | 14 | 14 | 0 | 29 | my($class, $expr_sql, $val, $escape) = @_; | ||
8 | |||||||
9 | 14 | 44 | my $sql = qq(( $expr_sql IS NOT NULL and $expr_sql != 0 )); | ||||
10 | |||||||
11 | 14 | 47 | return ($sql); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |