Condition Coverage

blib/lib/Bif/DB/Plugin/ChangeUUIDv1.pm
Criterion Covered Total %
condition 4 20 20.0


or 2 conditions

line l !l condition
416 0 0 $import{delete $delta->{'_delta'}} || die("Missing %import for $delta")

or 3 conditions

line l !l&&r !l&&!r condition
294 0 41 0 $prepared{$self}{'begin_change'} ||= $self->xprepare('select', ['p.uuid AS parent_uuid', 'c.mtime AS mtime', 'c.mtimef AS mtimef', 'c.mtimetz AS mtimetz', 'c.author AS author', 'c.author_contact AS author_contact', 'c.author_contact_method AS author_contact_method', 'c.author_shortname AS author_shortname', 'c.lang AS lang'], 'from', 'changes c', 'left_join', 'changes p', 'on', 'p.id = c.parent_id', 'where', 'c.id = ?')
315 0 41 0 $prepared{$self}{'deltas'} ||= $self->xprepare('select', ['d.id AS id', 'd.action AS action'], 'from', 'deltas d', 'where', 'd.change_id = ?', 'order_by', 'd.id')
327 0 164 0 $prepared{$self}{$delta->{'action'}} ||= $self->xprepare(@{die "action unimplemented: $delta->{'action'}" unless $statements{$delta->{'action'}};})
341 0 41 0 $prepared{$self}{'end_change'} ||= $self->xprepare('select', ['c.action_format AS action_format', 'n1.uuid AS action_node_uuid_1', 'n2.uuid AS action_node_uuid_2', 'i.uuid AS identity_uuid', 'c.message AS message', 'c.uuid AS uuid'], 'from', 'changes c', 'inner_join', 'nodes i', 'on', 'i.id = c.identity_id', 'left_join', 'nodes n1', 'on', 'n1.id = c.action_node_id_1', 'left_join', 'nodes n2', 'on', 'n2.id = c.action_node_id_2', 'where', 'c.id = ?')
402 0 0 0 $prepared{$self}{'have_change'} ||= $self->xprepare('select', 'count(id)', 'from', 'changes c', 'where', {'c.uuid', $end->{'uuid'}})
439 0 0 0 $prepared{$self}{'is_valid'} ||= $self->xprepare('select', case('when', 'c.valid = 0', 'then', -1, 'else', 1), 'from', 'changes c', 'where', {'c.uuid', $end->{'uuid'}})