Codebase list golang-github-renekroon-ttlcache / 4065cc93-4ee9-429e-a026-bcc4d0e3fe20/upstream evictionreason_enumer_test.go
4065cc93-4ee9-429e-a026-bcc4d0e3fe20/upstream

Tree @4065cc93-4ee9-429e-a026-bcc4d0e3fe20/upstream (Download .tar.gz)

evictionreason_enumer_test.go @4065cc93-4ee9-429e-a026-bcc4d0e3fe20/upstream

d86ed98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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())

}