Codebase list golang-github-renekroon-ttlcache / cb3d0774-eb3f-4e5a-ae85-278e88501869/main evictionreason_enumer_test.go
cb3d0774-eb3f-4e5a-ae85-278e88501869/main

Tree @cb3d0774-eb3f-4e5a-ae85-278e88501869/main (Download .tar.gz)

evictionreason_enumer_test.go @cb3d0774-eb3f-4e5a-ae85-278e88501869/main

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

}