This file is indexed.

/usr/lib/ruby/vendor_ruby/insist/raises.rb is in ruby-insist 1.0.0-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
module Insist::Raises
  # Assert raises
  def raises(exception_class)
    begin
      value
    rescue exception_class => e
      return # We're OK
    end

    assert(false, 
           "Expected exception '#{exception_class}' but none was raised")
  end # def raises

  # Asserts a failure
  def fails
    raises(Insist::Failure)
  end # def fails
end # module Insist::Raises