Package list golang-github-renekroon-ttlcache / 9c370782-b492-4808-a4e4-a3c5bf5fd6f1/main evictionreason_enumer_test.go
9c370782-b492-4808-a4e4-a3c5bf5fd6f1/main

Tree @9c370782-b492-4808-a4e4-a3c5bf5fd6f1/main (Download .tar.gz)

evictionreason_enumer_test.go @9c370782-b492-4808-a4e4-a3c5bf5fd6f1/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())

}