Codebase list golang-github-renekroon-ttlcache / bcdcbb3b-1d10-4e48-a0cd-925f9fdab4ee/upstream evictionreason_enumer_test.go
bcdcbb3b-1d10-4e48-a0cd-925f9fdab4ee/upstream

Tree @bcdcbb3b-1d10-4e48-a0cd-925f9fdab4ee/upstream (Download .tar.gz)

evictionreason_enumer_test.go @bcdcbb3b-1d10-4e48-a0cd-925f9fdab4ee/upstream

6196b8c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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())

}