Branch Coverage

lib/Twitter/ID.pm
Criterion Covered Total %
branch 28 28 100.0


line true false branch
27 8 10 if (ref $id eq "HASH")
33 2 8 unless ($id)
47 2 9 if $timestamp < $TW_EPOCH
48 2 7 if $worker < 0 or $sequence < 0
49 1 6 if $worker >= $MAX_WORKER
50 1 5 if $sequence >= $MAX_SEQUENCE
61 1 10 if (defined $timestamp)
66 4 6 if $$self <= $LAST_PRE_SNOWFLAKE_ID
75 1 7 if (defined $worker)
80 4 3 if $$self <= $LAST_PRE_SNOWFLAKE_ID
89 1 7 if (defined $sequence)
94 4 3 if $$self <= $LAST_PRE_SNOWFLAKE_ID
103 1 3 if defined $epoch
106 1 2 unless defined $timestamp