diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-08-05 15:56:10 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-08-05 15:56:10 -0500 |
commit | 72a70b127636ae8a83e2a2bd53b69143e3c5ded0 (patch) | |
tree | fdddf5cccdb487d63909f97074d111e67c79ded7 /adapters.go | |
parent | f90a14d5d723c5d2b87f2eaa19f441dec33bb9b2 (diff) | |
download | planr-72a70b127636ae8a83e2a2bd53b69143e3c5ded0.tar.xz planr-72a70b127636ae8a83e2a2bd53b69143e3c5ded0.zip |
Runtime & reorganziation
Diffstat (limited to 'adapters.go')
-rw-r--r-- | adapters.go | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/adapters.go b/adapters.go index 7c7dd0b..8419c8b 100644 --- a/adapters.go +++ b/adapters.go @@ -5,24 +5,12 @@ package planr // Test cases matching adapter configurations will be // fed into the adapter interface type Adapter interface { - - /* CONFIGURATION HOOKS */ - + // Config() AdapterConfig - /* BUILD CYCLE */ + // Called once to preform expensive code generation + Build(testCase []*TestCase) - // Called once at the beginning of the build process - InitializeBuild() - // Called once with every registered test case - // Can access configuration directly - Build(testCase TestCase) - // Called once after all builds - FinalizeBuild() - // Called pre-evaluate - Make() - // Called once per test case after FinalizeBuild - Evaluate(testCase TestCase) TestResult - // Called once after each test has been evaluated - Cleanup() + // Called every time source changes + Evaluate(testCase []*TestCase) } |