MCPcopy Create free account
hub / github.com/eth-easl/dirigent / TestNewAtomicMapString

Function TestNewAtomicMapString

pkg/atomic_map/atomic_map_test.go:35–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33)
34
35func TestNewAtomicMapString(t *testing.T) {
36 assert.NotNil(t, NewAtomicMap[string, string](), "Atomic map should not be nil")
37 assert.NotNil(t, NewAtomicMap[string, float64](), "Atomic map should not be nil")
38 assert.NotNil(t, NewAtomicMap[bool, mockTypeStruct](), "Atomic map should not be nil")
39 assert.NotNil(t, NewAtomicMap[string, *mockTypeStruct](), "Atomic map should not be nil")
40 assert.NotNil(t, NewAtomicMap[int, interface{}](), "Atomic map should not be nil")
41}
42
43func TestAtomicMap_AtomicGet(t *testing.T) {
44 atomicMap := NewAtomicMap[string, string]()

Callers

nothing calls this directly

Calls 1

NewAtomicMapFunction · 0.85

Tested by

no test coverage detected