You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
502 B
29 lines
502 B
2 months ago
|
package cache
|
||
|
|
||
|
import (
|
||
|
"github.com/patrickmn/go-cache"
|
||
|
"matchmaking-system/internal/conf"
|
||
|
"reflect"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestNewCacheDB(t *testing.T) {
|
||
|
type args struct {
|
||
|
c *conf.Data
|
||
|
}
|
||
|
tests := []struct {
|
||
|
name string
|
||
|
args args
|
||
|
want *cache.Cache
|
||
|
}{
|
||
|
// TODO: Add test cases.
|
||
|
}
|
||
|
for _, tt := range tests {
|
||
|
t.Run(tt.name, func(t *testing.T) {
|
||
|
if got := NewCacheDB(tt.args.c); !reflect.DeepEqual(got, tt.want) {
|
||
|
t.Errorf("NewCacheDB() = %v, want %v", got, tt.want)
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|