mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
22 lines
408 B
Go
22 lines
408 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package lru
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/luxfi/ids"
|
|
"github.com/luxfi/node/cache/cachetest"
|
|
)
|
|
|
|
func TestCache(t *testing.T) {
|
|
c := NewCache[ids.ID, int64](1)
|
|
cachetest.Basic(t, c)
|
|
}
|
|
|
|
func TestCacheEviction(t *testing.T) {
|
|
c := NewCache[ids.ID, int64](2)
|
|
cachetest.Eviction(t, c)
|
|
}
|