Codebase list golang-github-renekroon-ttlcache / 54663c70-d74f-455a-b29b-be65fff1bf1d/upstream evictionreason_enumer_test.go
54663c70-d74f-455a-b29b-be65fff1bf1d/upstream

Tree @54663c70-d74f-455a-b29b-be65fff1bf1d/upstream (Download .tar.gz)

evictionreason_enumer_test.go @54663c70-d74f-455a-b29b-be65fff1bf1d/upstream

8af4104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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())

}