nopAuditorPtr returns an atomic pointer to a nop auditor for tests.
(t *testing.T)
| 1915 | |
| 1916 | // nopAuditorPtr returns an atomic pointer to a nop auditor for tests. |
| 1917 | func nopAuditorPtr(t *testing.T) *atomic.Pointer[audit.Auditor] { |
| 1918 | t.Helper() |
| 1919 | nop := audit.NewNop() |
| 1920 | var p atomic.Pointer[audit.Auditor] |
| 1921 | p.Store(&nop) |
| 1922 | return &p |
| 1923 | } |
| 1924 | |
| 1925 | // mockAuditorPtr wraps a *MockAuditor in an atomic pointer for tests. |
| 1926 | func mockAuditorPtr(m *audit.MockAuditor) *atomic.Pointer[audit.Auditor] { |
no test coverage detected