Branch Coverage

blib/lib/Net/MQTT/Message/Connect.pm
Criterion Covered Total %
branch 42 42 100.0


line true false branch
16 6 6 unless (shift())->{'protocol_name'}
19 6 6 unless (shift())->{'protocol_version'}
24 14 7 unless $$self{'user_name_flag'}
30 14 7 unless $$self{'password_flag'}
34 4 4 unless (shift())->{'will_retain'}
37 4 4 unless (shift())->{'will_qos'}
42 18 9 unless $$self{'will_flag'}
48 3 3 defined $$self{'clean_session'} ? :
52 4 2 unless (shift())->{'connect_reserved_flag'}
55 3 3 unless (shift())->{'keep_alive_timer'}
58 2 12 unless (shift())->{'client_id'}
74 2 4 $self->user_name_flag ? :
2 4 $self->password_flag ? :
2 4 $self->will_flag ? :
98 1 2 if ($self->will_flag)
102 1 2 if ($self->user_name_flag)
105 1 2 if ($self->password_flag)
124 2 4 if $self->will_flag
125 2 4 if $self->will_flag
126 2 4 if $self->user_name_flag
127 2 4 if $self->password_flag