MCPcopy Create free account
hub / github.com/egonelbre/exp / TestReflectPointer

Function TestReflectPointer

reflectmap/all_test.go:13–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11}
12
13func TestReflectPointer(t *testing.T) {
14 m := NewPointerMap(0, 0)
15 x, y := 56, 12
16 m.Add(unsafe.Pointer(&x), unsafe.Pointer(&y))
17}
18
19func TestUnsafe(t *testing.T) {
20 m := NewUnsafeMap(0, 0)

Callers

nothing calls this directly

Calls 2

AddMethod · 0.95
NewPointerMapFunction · 0.85

Tested by

no test coverage detected