plugin_test

package
v2.0.0-...-3280c16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package plugin_test provides tools used to tests plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluginValidityChecker

func PluginValidityChecker(t *testing.T, pluginInstance *plugin.Plugin, desc PluginTestDesc)

PluginValidityChecker checks if the plugin works as expected

Types

type PluginTestDesc

type PluginTestDesc struct {
	ConfigJSON   string
	ValueChecker OmegaMatcher
}

PluginTestDesc contains an example of a test plugin configuration and a matcher to test values, used by the PluginValidityChecker.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL