Codebase list golang-github-renekroon-ttlcache / upstream/2.9.0+ds+git20211107.1.6eff24f evictionreason_enumer_test.go
upstream/2.9.0+ds+git20211107.1.6eff24f

Tree @upstream/2.9.0+ds+git20211107.1.6eff24f (Download .tar.gz)

evictionreason_enumer_test.go @upstream/2.9.0+ds+git20211107.1.6eff24fraw · history · blame

package ttlcache

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestError(t *testing.T) {
	assert.Equal(t, "key not found", ErrNotFound.Error())

}

func TestEvictionError(t *testing.T) {
	assert.Equal(t, "Removed", Removed.String())
	assert.Equal(t, "Expired", Expired.String())

}