This file is indexed.

/usr/lib/ruby/vendor_ruby/fog/test_helpers/minitest/assertions.rb is in ruby-fog-core 1.42.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
require "fog/schema/data_validator"

module MiniTest::Assertions
  # Compares a hash's structure against a reference schema hash and returns true
  # when they match. Fog::Schema::Datavalidator is used for the validation.
  def assert_match_schema(actual, schema, message = nil, options = {})
    validator = Fog::Schema::DataValidator.new
    message = "expected:\n #{actual}\nto be equivalent of:\n#{schema}"
    assert(validator.validate(actual, schema, options), message)
  end
end