Codebase list golang-github-renekroon-ttlcache / 5638253 evictionreason_enumer_test.go
5638253

Tree @5638253 (Download .tar.gz)

evictionreason_enumer_test.go @5638253raw · 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())

}