This file is indexed.

/usr/include/qxcppunit/cppunititem.h is in libqxcppunit-dev 0.9.2-0ubuntu1.

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
/*!
 * \file  cppunititem.h
 *
 * \brief Declares class CppUnitItem.
 */

#ifndef CPPUNITITEM_H
#define CPPUNITITEM_H

#include <qxrunner/runneritem.h>
#include <cppunit/Test.h>
#include <cppunit/TestListener.h>

using namespace QxRunner;

namespace QxCppUnit {

/*!
 * \brief The CppUnitItem class executes a CppUnit test case.
 *
 * The CppUnitItem class registers itself as a test listener and runs
 * a CppUnit test. In case of failure the item columns contain the
 * failure information, whereby the textual representation for a
 * warning is set to 'failure' which complies with CppUnit speech.
 * The class is designed to execute one individual test and not a test
 * suite.
 */

class CppUnitItem : public RunnerItem, private CPPUNIT_NS::TestListener
{
public: // Operations

	/*!
	 * Constructs a CppUnit item for one individual \a test with the
	 * test name in \a data and the given \a parent.
	 */
	CppUnitItem(const QList<QVariant>& data, RunnerItem* parent = 0,
                                             CPPUNIT_NS::Test* test = 0);

	/*!
	 * Destroys this CppUnit item.
	 */
	~CppUnitItem();

	/*!
	 * Runs the test and returns the test result code which is of type
	 * QxRunner::RunnerResult.
	 */
	int run();

private: // Operations

	/*!
	 * Called when a failure occurs while running the test. Records
	 * failure information in the item.
	 */
	void addFailure(const CPPUNIT_NS::TestFailure& failure);

private: // Attributes

	CPPUNIT_NS::Test* m_test;
};

} // namespace

#endif // CPPUNITITEM_H