Package list golang-github-renekroon-ttlcache / 35c33b4f-0f01-47e3-a08e-abb0bcfb7cc2/main evictionreason_enumer_test.go
35c33b4f-0f01-47e3-a08e-abb0bcfb7cc2/main

Tree @35c33b4f-0f01-47e3-a08e-abb0bcfb7cc2/main (Download .tar.gz)

evictionreason_enumer_test.go @35c33b4f-0f01-47e3-a08e-abb0bcfb7cc2/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())

}