go/src/sync/map_test.go

type mapOp

const opLoad

const opStore

const opLoadOrStore

const opLoadAndDelete

const opDelete

const opSwap

const opCompareAndSwap

const opCompareAndDelete

const opClear

var mapOps

type mapCall

func (c mapCall) apply(m mapInterface) (any, bool) {}

type mapResult

func randValue(r *rand.Rand) any {}

func (mapCall) Generate(r *rand.Rand, size int) reflect.Value {}

func applyCalls(m mapInterface, calls []mapCall) (results []mapResult, final map[any]any) {}

func applyMap(calls []mapCall) ([]mapResult, map[any]any) {}

func applyRWMutexMap(calls []mapCall) ([]mapResult, map[any]any) {}

func applyDeepCopyMap(calls []mapCall) ([]mapResult, map[any]any) {}

func TestMapMatchesRWMutex(t *testing.T) {}

func TestMapMatchesDeepCopy(t *testing.T) {}

func TestConcurrentRange(t *testing.T) {}

func TestIssue40999(t *testing.T) {}

func TestMapRangeNestedCall(t *testing.T) {}

func TestCompareAndSwap_NonExistingKey(t *testing.T) {}

func TestMapRangeNoAllocations(t *testing.T) {}

// TestConcurrentClear tests concurrent behavior of sync.Map properties to ensure no data races.
// Checks for proper synchronization between Clear, Store, Load operations.
func TestConcurrentClear(t *testing.T) {}

func TestMapClearNoAllocations(t *testing.T) {}