struct rename
This commit is contained in:
4
lazy.go
4
lazy.go
@@ -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")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user