plugin

package
v0.0.0-...-cbdeaa7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

5 type plugins:

runner : define how to run build and test

testDiscoverer : define how to detect tests

simulator: define sim_cmd, compile cmd ...

checker: define how to return result(pass, fail, warning, unknown)

reporter: define how to generate report

Index

Constants

View Source
const (
	JVSRunnerPlugin         = "runner"
	JVSTestDiscovererPlugin = "testDiscoverer"
	JVSSimulatorPlugin      = "simulator"
	JVSCheckerPlugin        = "checker"
	JVSReporterPlugin       = "reporter"
)

Variables

This section is empty.

Functions

func LoadPlugin

func LoadPlugin(pluginType JVSPluginType, pluginName string) *jvsErrors.JVSAstError

func RegisterPlugin

func RegisterPlugin(pluginType JVSPluginType, d func() Plugin)

func ValidPluginTypes

func ValidPluginTypes() []string

func ValidPlugins

func ValidPlugins(pluginType JVSPluginType) []string

Types

type JVSPluginType

type JVSPluginType string

type Plugin

type Plugin interface {
	Name() string
}

func GetPlugin

func GetPlugin(pluginType JVSPluginType, key string) Plugin

Jump to

Keyboard shortcuts

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