pgpainless/sequoia-wot-vectors/src/test/kotlin/org/sequoia_pgp/wot/suite/harness/Harness.kt

19 lines
575 B
Kotlin
Raw Normal View History

2023-07-17 16:43:35 +02:00
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: BSD-3-Clause
package org.sequoia_pgp.wot.suite.harness
2023-07-17 18:07:44 +02:00
import org.sequoia_pgp.wot.suite.ExecutionCallback
import org.sequoia_pgp.wot.suite.SimpleTestCase
2023-07-17 16:43:35 +02:00
/**
2023-07-17 18:07:44 +02:00
* Abstract class to produce [SimpleTestCase.ExecutionCallback] instances for WOT CLI implementations.
2023-07-17 16:43:35 +02:00
*/
abstract class Harness {
/**
2023-07-17 18:07:44 +02:00
* Return a [SimpleTestCase.ExecutionCallback] which executes a [SimpleTestCase] using a custom WOT implementation.
2023-07-17 16:43:35 +02:00
*/
2023-07-17 18:07:44 +02:00
abstract fun runner(): ExecutionCallback
2023-07-17 16:43:35 +02:00
}