Codebase list golang-github-renekroon-ttlcache / be9bbfc2-9f7a-432e-b207-56c7b5573188/main evictionreason_enumer_test.go
be9bbfc2-9f7a-432e-b207-56c7b5573188/main

Tree @be9bbfc2-9f7a-432e-b207-56c7b5573188/main (Download .tar.gz)

evictionreason_enumer_test.go @be9bbfc2-9f7a-432e-b207-56c7b5573188/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())

}