@@ -0,0 +1,10 @@
|
||||
package redisconst
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestMostNewModuleVideoListKeyKeepsOriginalFormat(t *testing.T) {
|
||||
got := GetMostNewModuleVideoListKey(1, 1, 10)
|
||||
if want := "mostNewModuleVideoList:1:1:10"; got != want {
|
||||
t.Fatalf("cache key = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user