MCPcopy Create free account
hub / github.com/creasty/defaults / methodValue

Struct methodValue

method_test.go:19–19  ·  view source on GitHub ↗

This test is in package defaults rather than defaults_test: isPromotedMethod is unexported, and Set reaches it only with a struct, a setter and a walk, to ask one question about a type. What Set makes of the answer is pinned from outside, in setter_test.go. The fixtures declare a method of no parti

Source from the content-addressed store, hash-verified

17
18// methodValue declares Ping on a value receiver.
19type methodValue struct{}
20
21func (methodValue) Ping() {}
22

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected