summaryrefslogtreecommitdiff
path: root/adapters.go
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2021-09-06 14:36:18 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2021-09-06 14:36:18 -0500
commit989412cd49c4d922d2a6fdcebb1c51fbc91bc066 (patch)
treeddcf528afbfb5f0720884b223674913ea6ce15d1 /adapters.go
parent5a5c9d98ea15ac15a86901808ac4b966fec5e012 (diff)
parent7343fd274c37246ba449550cf29f638351794ba4 (diff)
downloaddeb-planr-989412cd49c4d922d2a6fdcebb1c51fbc91bc066.tar.xz
deb-planr-989412cd49c4d922d2a6fdcebb1c51fbc91bc066.zip
Merge branch 'upstream' into ppa
Update v0.1.2
Diffstat (limited to 'adapters.go')
-rw-r--r--adapters.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/adapters.go b/adapters.go
index f6c48cb..03f0b11 100644
--- a/adapters.go
+++ b/adapters.go
@@ -11,7 +11,7 @@ import (
type Adapter interface {
Config() AdapterConfig
- Init(dirs DirConfig)
+ Init(ctx PipelineContext)
// Called once to preform expensive code generation
Build(testCase []TestCase)
@@ -20,6 +20,12 @@ type Adapter interface {
Evaluate(testCase []TestCase) []TestResult
}
+// Additional information required during the build / evaluation stages
+type PipelineContext struct {
+ Dirs DirConfig
+ AdapterDir string
+}
+
// A parser function takes a blob of TOML and decodes it into
// configuration relevant to an adapter
type TomlParser func (toml.Primitive) (InheritableConfig, error)