// assertNil checks if the result at index is nil. func assertNil(assert audit.Assertion, result *redis.ResultSet, index int) { v, err := result.ValueAt(index) assert.Nil(err) assert.Nil(v) }
// assertEqualBool checks if the result at index is value. func assertEqualBool(assert audit.Assertion, result *redis.ResultSet, index int, value bool) { b, err := result.BoolAt(index) assert.Nil(err) assert.Equal(b, value) }
// assertEqualInt checks if the result at index is value. func assertEqualInt(assert audit.Assertion, result *redis.ResultSet, index, value int) { i, err := result.IntAt(index) assert.Nil(err) assert.Equal(i, value) }
// assertEqualString checks if the result at index is value. func assertEqualString(assert audit.Assertion, result *redis.ResultSet, index int, value string) { s, err := result.StringAt(index) assert.Nil(err) assert.Equal(s, value) }