mirror of
https://github.com/foomo/neosproxy.git
synced 2026-11-30 00:31:46 +00:00
* feat: add test for filesystem caching * content cache dependencies cms content loader: context with timeout go builder version 1.13
23 lines
322 B
Go
23 lines
322 B
Go
package content
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestDependencies(t *testing.T) {
|
|
deps := NewCacheDependencies()
|
|
deps.Set("abc", "123", "de", "live")
|
|
d := deps.Get("123", "de", "live")
|
|
|
|
fmt.Println(d)
|
|
|
|
if len(d) != 1 {
|
|
t.Fatal("unexpected length")
|
|
}
|
|
|
|
if d[0] != "abc" {
|
|
t.Fatal("unexpected dependency")
|
|
}
|
|
}
|