1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/vendor/github.com/modern-go/concurrent/map_test.go

18 lines
269 B
Go

package concurrent_test
import (
"github.com/modern-go/concurrent"
"testing"
)
func TestMap_Load(t *testing.T) {
m := concurrent.NewMap()
m.Store("hello", "world")
value, found := m.Load("hello")
if !found {
t.Fail()
}
if value != "world" {
t.Fail()
}
}