blib/lib/DBIx/Mint/Schema.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 47 | 61.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
65 | 3 | 5 | 3 | $params{'from_class'} and $params{'conditions'} |
69 | 3 | 3 | 5 | $params{'from_class'} and not exists $params{'conditions'} |
line | l | !l | condition |
---|---|---|---|
14 | 0 | 9 | $name //= '_DEFAULT' |
40 | 1 | 1 | $params{'inverse_method'} || undef |
41 | 1 | 1 | $params{'insert_into'} || undef |
53 | 2 | 0 | $params{'inverse_method'} || undef |
77 | 8 | 3 | $params{'inverse_method'} || undef |
78 | 2 | 9 | $params{'insert_into'} || undef |
79 | 0 | 11 | $params{'inv_insert_into'} || undef |
80 | 11 | 0 | $params{'result_as'} || undef |
81 | 7 | 4 | $params{'inv_result_as'} || undef |
138 | 17 | 2 | $result_as //= 'resultset' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
38 | 2 | 0 | 0 | $params{'conditions'} || croak('one_to_many: join conditions are required') |
39 | 2 | 0 | 0 | $params{'method'} || croak('one_to_many: method name is required') |
51 | 2 | 0 | 0 | $params{'conditions'} || croak('many_to_many: join conditions are required') |
52 | 2 | 0 | 0 | $params{'method'} || croak('many_to_many: method name is required') |
75 | 11 | 0 | 0 | $params{'conditions'} || croak('add_relationship: join conditions are required') |
76 | 11 | 0 | 0 | $params{'method'} || croak('add_relationship: method name is required') |
117 | 21 | 0 | 0 | $schema->for_class($to_class) || croak("Class $to_class has not been defined") |