aboutsummaryrefslogtreecommitdiff
path: root/adapters.go
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-09-06 14:36:18 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-09-06 14:36:18 -0500
commit31c594fe80c7b979f6dc4e4232f705f7bbf85c7c (patch)
treec3f635efa8a366cd98f7776871062167e44811cd /adapters.go
parentf8417a7103e80f8216189496aa64b8f4075d995e (diff)
parent2fcc17cb12dc76f0322dcf39829b5ceaf3db8a12 (diff)
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)