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