Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExecCommand = func(name string, arg ...string) ([]byte, error) { cmd := exec.Command(name, arg...) return cmd.Output() }
ExecCommand is a variable that holds the function to execute system commands. It can be replaced in tests to mock command execution.
Functions ¶
func CreateSQLiteTestDB ¶
func CreateSQLiteTestDB(t *testing.T, dbPath string, schema string, rows [][]interface{}, columns []string)
CreateSQLiteTestDB creates a test SQLite database with schema and test data
func NewTestLogger ¶
func SplitLines ¶
Helper to split content into lines (handles different line endings)
Types ¶
type TestDataWriter ¶
TestDataWriter implements utils.DataWriter for testing
func (*TestDataWriter) Close ¶
func (w *TestDataWriter) Close() error
func (*TestDataWriter) WriteRecord ¶
func (w *TestDataWriter) WriteRecord(record utils.Record) error
Click to show internal directories.
Click to hide internal directories.