This file is indexed.

/usr/share/perl5/CHI/t/Driver/File/DepthZero.pm is in libchi-perl 0.60-3.

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
package CHI::t::Driver::File::DepthZero;
$CHI::t::Driver::File::DepthZero::VERSION = '0.60';
use strict;
use warnings;
use CHI::Test;
use File::Temp qw(tempdir);
use File::Basename qw(dirname);
use base qw(CHI::t::Driver::File);

# Test file driver with zero depth

sub testing_driver_class { 'CHI::Driver::File' }

sub new_cache_options {
    my $self = shift;

    return ( $self->SUPER::new_cache_options(), depth => 0 );
}

sub test_default_depth : Tests {
    my $self = shift;

    my $cache = $self->new_cache();
    is( $cache->depth, 0 );
    is( dirname( $cache->path_to_key('foo') ),
        $cache->path_to_namespace, "data files are one level below namespace" );
}

1;