Showing 3 of 9 total issues
Function TestItems
has 65 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestItems(t *testing.T) {
assert := assert.New(t)
tests := []struct {
max int
Method RedisCache.getGobItem
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *RedisCache) getGobItem(key string) (*eurekache.Item, bool) {
conn, err := c.conn()
if err != nil {
return nil, false
}
Method RedisCache.SetExpire
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *RedisCache) SetExpire(key string, data interface{}, ttl int64) error {
conn, err := c.conn()
if err != nil {
return err
}