MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / pointer

Function pointer

internal/proxy/proxy_test.go:124–126  ·  view source on GitHub ↗

pointer returns the address of v and makes it easy to take the address of a predeclared identifier.

(v T)

Source from the content-addressed store, hash-verified

122// pointer returns the address of v and makes it easy to take the address of a
123// predeclared identifier.
124func pointer[T any](v T) *T {
125 return &v
126}
127
128func TestClientInitialization(t *testing.T) {
129 ctx := context.Background()

Callers 2

TestClientInitializationFunction · 0.70
TestSQLDataWarmupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected