package testenv

import (
	
	
	
	

	
)

type Context interface {
	Context() context.Context
	Logf(format string, args ...any)
}

var (
	FS     fs.FS
	TB     Context
	Exit   func(int32)
	System func(*sqlite3_wrap.Wrapper, int32) int32

	buf []byte
	mtx sync.Mutex
)

func ( byte) error {
	mtx.Lock()
	defer mtx.Unlock()

	if  == '\n' {
		TB.Logf("%s", buf)
		buf = buf[:0]
	} else {
		buf = append(buf, )
	}
	return nil
}

func ( []byte) ( int,  error) {
	mtx.Lock()
	defer mtx.Unlock()

	buf = append(buf, ...)
	for {
		, ,  := bytes.Cut(buf, []byte("\n"))
		if ! {
			return len(), nil
		}
		TB.Logf("%s", )
		buf = 
	}
}

func ( string) ( int,  error) {
	return Write([]byte())
}