Package list golang-github-renekroon-ttlcache / 881e1861-82ae-40fe-b495-618bf342159d/upstream evictionreason_enumer_test.go
881e1861-82ae-40fe-b495-618bf342159d/upstream

Tree @881e1861-82ae-40fe-b495-618bf342159d/upstream (Download .tar.gz)

evictionreason_enumer_test.go @881e1861-82ae-40fe-b495-618bf342159d/upstreamraw · 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())

}