This file is indexed.

/usr/share/doc/ruby-qt4-test/examples/myfirsttest.rb is in ruby-qt4-test 4:4.13.0-0ubuntu1.

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

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
#!/usr/bin/ruby

require 'Qt4'
require 'qttest'

class MyFirstTest < Qt::Object
  private_slots :initTestCase, 
                :myFirstTest, :mySecondTest,
                :cleanupTestCase

  def initTestCase()
    qDebug("called before everything else")
  end 
  
  def myFirstTest()
    QVERIFY('1 == 1')
    qDebug("myFirstTest()")
  end

  def mySecondTest()
    QVERIFY('1 != 2')
    qDebug("mySecondTest()")
  end

  def cleanupTestCase()
    qDebug("called after myFirstTest and mySecondTest")
  end
end

Qt::Test.qExec(MyFirstTest.new, ARGV)