Method: Inspec::Plugins::SourceReader#tests

Defined in:
lib/inspec/plugins/source_reader.rb

#testsHash

Retrieve this profile’s tests

“tests” here refers to a test file. Individual controls and anonymous tests are later extracted from the raw contents of a test file. The map her simply maps from a test file name to the file contents.

Returns:

  • (Hash)

    Collection with references pointing to test contents



28
29
30
# File 'lib/inspec/plugins/source_reader.rb', line 28

def tests
  raise "SourceReader #{self} does not implement `tests()`. This method is required"
end