Fix lint
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
b3aeb16403
commit
8a3a6ae044
|
@ -73,7 +73,7 @@ func InitTestFixtures(tablenames ...string) (err error) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// AssertDBExists checks and asserts the existance of certain entries in the db
|
// AssertDBExists checks and asserts the existence of certain entries in the db
|
||||||
func AssertDBExists(t *testing.T, table string, values map[string]interface{}) {
|
func AssertDBExists(t *testing.T, table string, values map[string]interface{}) {
|
||||||
v := make(map[string]interface{})
|
v := make(map[string]interface{})
|
||||||
exists, err := x.Table(table).Where(values).Get(&v)
|
exists, err := x.Table(table).Where(values).Get(&v)
|
||||||
|
@ -81,7 +81,7 @@ func AssertDBExists(t *testing.T, table string, values map[string]interface{}) {
|
||||||
assert.True(t, exists, fmt.Sprintf("Entries %v do not exist in table %s", values, table))
|
assert.True(t, exists, fmt.Sprintf("Entries %v do not exist in table %s", values, table))
|
||||||
}
|
}
|
||||||
|
|
||||||
// AssertDBMissing checks and asserts the nonexistance of certain entries in the db
|
// AssertDBMissing checks and asserts the nonexiste nce of certain entries in the db
|
||||||
func AssertDBMissing(t *testing.T, table string, values map[string]interface{}) {
|
func AssertDBMissing(t *testing.T, table string, values map[string]interface{}) {
|
||||||
v := make(map[string]interface{})
|
v := make(map[string]interface{})
|
||||||
exists, err := x.Table(table).Where(values).Exist(&v)
|
exists, err := x.Table(table).Where(values).Exist(&v)
|
||||||
|
|
Loading…
Reference in New Issue