Package list golang-github-renekroon-ttlcache / 19d5bb94-a87b-439b-b256-e6c350cb3e86/main evictionreason_enumer_test.go
19d5bb94-a87b-439b-b256-e6c350cb3e86/main

Tree @19d5bb94-a87b-439b-b256-e6c350cb3e86/main (Download .tar.gz)

evictionreason_enumer_test.go @19d5bb94-a87b-439b-b256-e6c350cb3e86/mainraw · 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())

}