Package list golang-github-renekroon-ttlcache / 8f4979aa-bc13-4b98-ab53-804db52337ab/main evictionreason_enumer_test.go
8f4979aa-bc13-4b98-ab53-804db52337ab/main

Tree @8f4979aa-bc13-4b98-ab53-804db52337ab/main (Download .tar.gz)

evictionreason_enumer_test.go @8f4979aa-bc13-4b98-ab53-804db52337ab/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())

}