Codebase list golang-github-renekroon-ttlcache / 72d82348-d21e-432c-8764-26849361353a/main evictionreason_enumer_test.go
72d82348-d21e-432c-8764-26849361353a/main

Tree @72d82348-d21e-432c-8764-26849361353a/main (Download .tar.gz)

evictionreason_enumer_test.go @72d82348-d21e-432c-8764-26849361353a/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())

}