This file is indexed.

/usr/share/perl5/Test/Spec/TodoExample.pm is in libtest-spec-perl 0.51-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package Test::Spec::TodoExample;

# Purpose: represents a `xit` block (ie. a pending/todo test)

use strict;
use warnings;

use Test::Spec qw(*TODO);

sub new {
    my ($class, $args) = @_;

    my $self = bless {}, $class;
    $self->{name}        = $args->{name};
    $self->{description} = $args->{description};
    $self->{reason}      = $args->{reason} || '(unimplemented)';
    $self->{builder}     = $args->{builder};

    return $self;
}

# Attributes
sub name        { shift->{name} }
sub description { shift->{description} }
sub reason      { shift->{reason} }
sub builder     { shift->{builder} }

# Methods
sub run {
    my ($self) = @_;

    local $TODO = $self->reason;
    my $builder = $self->builder;

    $builder->todo_start($TODO);
    $builder->ok(1, $self->description); # XXX: could fail the TOOD (or even run it?)
    $builder->todo_end();
}

1;