Package list golang-github-renekroon-ttlcache / e5c82c96-1e97-4212-868c-239dfd0c7e2d/main evictionreason_enumer_test.go
e5c82c96-1e97-4212-868c-239dfd0c7e2d/main

Tree @e5c82c96-1e97-4212-868c-239dfd0c7e2d/main (Download .tar.gz)

evictionreason_enumer_test.go @e5c82c96-1e97-4212-868c-239dfd0c7e2d/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())

}