]> git.lizzy.rs Git - go-anidb.git/commitdiff
anidb: Fix cache_test.go compilation
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Mon, 15 Jul 2013 03:21:54 +0000 (00:21 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Mon, 15 Jul 2013 03:21:54 +0000 (00:21 -0300)
cache_test.go

index 41c49b3de5d47ae690404c4cf2fb0e9a70c8634c..fe37555941a00a5f260183f5be749c763ac0e691 100644 (file)
@@ -10,14 +10,14 @@ import (
 
 type stringifyVec struct {
        result []string
-       data   []interface{}
+       data   []cacheKey
 }
 
 func TestStringify(T *testing.T) {
        T.Parallel()
 
        vec := []stringifyVec{
-               stringifyVec{[]string{"a"}, []interface{}{"a"}},
+               stringifyVec{[]string{"a"}, []cacheKey{"a"}},
        }
        for i, v := range vec {
                str := stringify(v.data...)
@@ -29,7 +29,7 @@ func TestStringify(T *testing.T) {
 
 type cachePathVec struct {
        path string
-       data []interface{}
+       data []cacheKey
 }
 
 var testDir = path.Join(os.TempDir(), "testing", "anidb")
@@ -40,8 +40,8 @@ func TestCachePath(T *testing.T) {
        T.Parallel()
 
        vec := []cachePathVec{
-               cachePathVec{path.Join(testDir, "a"), []interface{}{"a"}},
-               cachePathVec{path.Join(testDir, "b", "c", "d"), []interface{}{"b", "c", "d"}},
+               cachePathVec{path.Join(testDir, "a"), []cacheKey{"a"}},
+               cachePathVec{path.Join(testDir, "b", "c", "d"), []cacheKey{"b", "c", "d"}},
        }
        for i, v := range vec {
                str := cachePath(v.data...)