This file is indexed.

/usr/share/doc/python-pygccxml/examples/example.hpp is in python-pygccxml 1.0.0-4.

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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Copyright 2004-2007 Roman Yakovenko.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#ifndef example_hpp_12_10_2006
#define example_hpp_12_10_2006

#include <vector>
#include <string>
#include <map>

namespace unittests{

struct test_results{
    
    enum status{ ok, fail, error };
    
    typedef std::map< std::string, status > result_container;
    
    void update( const std::string& name, status result ){
        m_results[ name ] = result;
    }
    
private:    
    result_container m_results;
};
    
struct test_case{
    
    test_case( const std::string& name )
    : m_name( name )
    {}
    
    virtual void set_up(){}
        
    virtual void tear_down(){}
    
    virtual void run() = 0;
        
private:
    const std::string m_name;
};

struct test_suite : public test_case{
    
    typedef std::vector< test_case* > test_container;
    
    test_suite( const std::string& name, const test_container& tests )
    : test_case(name)
      , m_tests( tests )
    {}
        
    virtual void run();
       
    const test_results& get_results() const 
    { return m_results; }
    
private:    
    const test_container m_tests;
    test_results m_results;
};
    
}

#endif//example_hpp_12_10_2006