| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package App::MigrateToTest2V0::Rule::ReplaceIsDeeplyToIs; | 
| 2 | 4 |  |  | 4 |  | 1092 | use strict; | 
|  | 4 |  |  |  |  | 10 |  | 
|  | 4 |  |  |  |  | 126 |  | 
| 3 | 4 |  |  | 4 |  | 31 | use warnings; | 
|  | 4 |  |  |  |  | 10 |  | 
|  | 4 |  |  |  |  | 113 |  | 
| 4 | 4 |  |  | 4 |  | 21 | use parent 'App::MigrateToTest2V0::Rule'; | 
|  | 4 |  |  |  |  | 9 |  | 
|  | 4 |  |  |  |  | 19 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | sub apply { | 
| 7 | 14 |  |  | 14 | 0 | 55 | my ($class, $doc) = @_; | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | my $tokens = $doc->find(sub { | 
| 10 | 339 |  |  | 339 |  | 4395 | my (undef, $elem) = @_; | 
| 11 | 339 |  | 100 |  |  | 1542 | return $elem->isa('PPI::Token') && $elem->content eq 'is_deeply'; | 
| 12 | 14 |  |  |  |  | 137 | }); | 
| 13 | 14 | 100 |  |  |  | 291 | return unless $tokens; | 
| 14 |  |  |  |  |  |  |  | 
| 15 | 1 |  |  |  |  | 4 | for my $token (@$tokens) { | 
| 16 | 1 |  |  |  |  | 5 | $token->set_content('is'); | 
| 17 |  |  |  |  |  |  | } | 
| 18 |  |  |  |  |  |  | } | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | 1; |