Codebase list golang-github-renekroon-ttlcache / ddf6671b-8ee2-4c15-a7bd-a0bbb2ba47ca/upstream evictionreason_enumer_test.go
ddf6671b-8ee2-4c15-a7bd-a0bbb2ba47ca/upstream

Tree @ddf6671b-8ee2-4c15-a7bd-a0bbb2ba47ca/upstream (Download .tar.gz)

evictionreason_enumer_test.go @ddf6671b-8ee2-4c15-a7bd-a0bbb2ba47ca/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())

}