type testObject … // A fake objectCache for unit test. func NewFakeObjectCache(f func() (interface{ … } func TestAddAndGet(t *testing.T) { … } func TestExpirationBasic(t *testing.T) { … }
type testObject … // A fake objectCache for unit test. func NewFakeObjectCache(f func() (interface{ … } func TestAddAndGet(t *testing.T) { … } func TestExpirationBasic(t *testing.T) { … }