mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2025-05-18 14:34:12 +02:00
refactor(connector): made VDMJ into an object
This commit is contained in:
parent
85ca7b11f4
commit
098124bc8c
@ -15,7 +15,7 @@ import java.nio.file.Paths
|
|||||||
import kotlin.io.path.pathString
|
import kotlin.io.path.pathString
|
||||||
|
|
||||||
@OptIn(DelicateCoroutinesApi::class)
|
@OptIn(DelicateCoroutinesApi::class)
|
||||||
class VDMJ {
|
object VDMJ {
|
||||||
// Create a ByteArrayOutputStream to capture the output
|
// Create a ByteArrayOutputStream to capture the output
|
||||||
private val byteArrayOutputStream = ByteArrayOutputStream()
|
private val byteArrayOutputStream = ByteArrayOutputStream()
|
||||||
private val printStream = ConsolePrintWriter(byteArrayOutputStream)
|
private val printStream = ConsolePrintWriter(byteArrayOutputStream)
|
||||||
|
@ -10,7 +10,7 @@ import io.ktor.utils.io.errors.*
|
|||||||
* and run steps
|
* and run steps
|
||||||
*/
|
*/
|
||||||
class VDMJTransaction(val actions: List<Action>, private val xpc: XPC) {
|
class VDMJTransaction(val actions: List<Action>, private val xpc: XPC) {
|
||||||
private val vdmj = VDMJ()
|
private val vdmj = VDMJ
|
||||||
|
|
||||||
private val drefs: Array<String> = actions.map { it.type }.toTypedArray()
|
private val drefs: Array<String> = actions.map { it.type }.toTypedArray()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user