MCPcopy
hub / github.com/google/go-cmp / newInt

Function newInt

cmp/compare_test.go:108–108  ·  view source on GitHub ↗

TODO(≥go1.18): Define a generic function that boxes a value on the heap.

(n int)

Source from the content-addressed store, hash-verified

106
107// TODO(≥go1.18): Define a generic function that boxes a value on the heap.
108func newInt(n int) *int { return &n }
109
110type Stringer string
111

Callers 3

comparerTestsFunction · 0.85
reporterTestsFunction · 0.85
project1TestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected