Skip to content

Commit 88466ca

Browse files
committed
chore: add unit testing for subpackage
1 parent 9bcee0d commit 88466ca

4 files changed

Lines changed: 1 addition & 6 deletions

File tree

memcached/memcached.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ package memcached
22

33
import (
44
"github.com/bradfitz/gomemcache/memcache"
5-
"github.com/bradleypeabody/gorilla-sessions-memcache"
5+
gsm "github.com/bradleypeabody/gorilla-sessions-memcache"
66
"github.com/gin-contrib/sessions"
7-
gsessions "github.com/gorilla/sessions"
87
)
98

109
type Store interface {

memstore/memstore.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package memstore
22

33
import (
44
"github.com/gin-contrib/sessions"
5-
gsessions "github.com/gorilla/sessions"
65
"github.com/quasoft/memstore"
76
)
87

mongo/mongo.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package mongo
33
import (
44
"github.com/gin-contrib/sessions"
55
"github.com/globalsign/mgo"
6-
gsessions "github.com/gorilla/sessions"
76
"github.com/kidstuff/mongostore"
87
)
98

redis/redis.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"github.com/boj/redistore"
77
"github.com/gin-contrib/sessions"
88
"github.com/gomodule/redigo/redis"
9-
gsessions "github.com/gorilla/sessions"
109
)
1110

1211
type Store interface {
@@ -62,7 +61,6 @@ type store struct {
6261
}
6362

6463
// GetRedisStore get the actual woking store.
65-
//
6664
// Ref: https://godoc.org/github.com/boj/redistore#RediStore
6765
func GetRedisStore(s Store) (err error, rediStore *redistore.RediStore) {
6866
realStore, ok := s.(*store)

0 commit comments

Comments
 (0)