Files
external-snapshotter/vendor/github.com/modern-go/concurrent/map_test.go
xing-yang e213d1890d Add generated file
This PR adds generated files under pkg/client and vendor folder.
2018-08-10 06:20:40 -07:00

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