mirror of
				https://github.com/smyalygames/checklist-tester.git
				synced 2025-11-04 04:49:49 +01: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
 | 
			
		||||
 | 
			
		||||
@OptIn(DelicateCoroutinesApi::class)
 | 
			
		||||
class VDMJ {
 | 
			
		||||
object VDMJ {
 | 
			
		||||
    // Create a ByteArrayOutputStream to capture the output
 | 
			
		||||
    private val byteArrayOutputStream = ByteArrayOutputStream()
 | 
			
		||||
    private val printStream = ConsolePrintWriter(byteArrayOutputStream)
 | 
			
		||||
 | 
			
		||||
@ -10,7 +10,7 @@ import io.ktor.utils.io.errors.*
 | 
			
		||||
 * and run steps
 | 
			
		||||
 */
 | 
			
		||||
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()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user