struct rename

This commit is contained in:
2025-09-26 16:48:53 -04:00
parent 4573594c85
commit 4febf3d877

View File

@@ -23,14 +23,14 @@ type MockResults struct {
Rows [][]driver.Value Rows [][]driver.Value
} }
type MockDetails struct { type Config struct {
Query string Query string
Example any Example any
Keys []any Keys []any
RowCount int RowCount int
} }
func GenerateRandomResults(m MockDetails) (*MockResults, error) { func GenerateRandomResults(m Config) (*MockResults, error) {
if m.Example == nil { if m.Example == nil {
return nil, errors.New("example value cannot be nil") return nil, errors.New("example value cannot be nil")
} }