Package list golang-github-renekroon-ttlcache / 690c3026-a8ce-4646-a3d1-a2f1a0aae4ed/upstream evictionreason_enumer_test.go
690c3026-a8ce-4646-a3d1-a2f1a0aae4ed/upstream

Tree @690c3026-a8ce-4646-a3d1-a2f1a0aae4ed/upstream (Download .tar.gz)

evictionreason_enumer_test.go @690c3026-a8ce-4646-a3d1-a2f1a0aae4ed/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())

}