diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-06 13:21:49 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-06 13:21:49 -0500 |
commit | b3efa2051e3b0edf4001afa326c5bf8b1268f4fe (patch) | |
tree | 52b8d8e678773c6fde49c6a64d5b91ea21c630ac /adapters.go | |
parent | 40236ca7e4024a2a181a2de6d0bbc22a68487dc1 (diff) | |
download | deb-planr-b3efa2051e3b0edf4001afa326c5bf8b1268f4fe.tar.xz deb-planr-b3efa2051e3b0edf4001afa326c5bf8b1268f4fe.zip |
Set individual cmd working dir rather than using chdir. Robust multithreading.
Diffstat (limited to 'adapters.go')
-rw-r--r-- | adapters.go | 8 |
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) |