Class: Inspec::Plugin::V2::PluginType::Mock

Inherits:
Inspec::Plugin::V2::PluginBase show all
Defined in:
lib/inspec/plugin/v2/plugin_types/mock.rb

Overview

Test plugin type

Instance Method Summary collapse

Methods inherited from Inspec::Plugin::V2::PluginBase

base_class_for_type, plugin_name, register_plugin_type, registry

Instance Method Details

#mock_hookObject

This is the API for the mock plugin type: when a mock plugin is activated, it is expected to be able to respond to this, and “do something”

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/inspec/plugin/v2/plugin_types/mock.rb', line 8

def mock_hook
  raise NotImplementedError, 'Mock plugins must implement mock_hook'
end