MCPcopy Index your code
hub / github.com/coder/coder / ptr

Function ptr

coderd/database/dbpurge/dbpurge_test.go:1912–1914  ·  view source on GitHub ↗

ptr is a helper to create a pointer to a value.

(v T)

Source from the content-addressed store, hash-verified

1910
1911// ptr is a helper to create a pointer to a value.
1912func ptr[T any](v T) *T {
1913 return &v
1914}
1915
1916// nopAuditorPtr returns an atomic pointer to a nop auditor for tests.
1917func nopAuditorPtr(t *testing.T) *atomic.Pointer[audit.Auditor] {

Callers 1

TestDeleteExpiredAPIKeysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected