TestMetricsNilSafe asserts the helpers tolerate a nil receiver so callers can pass `nil` to disable metric updates without guarding every call site.
(t *testing.T)
| 73 | // callers can pass `nil` to disable metric updates without guarding |
| 74 | // every call site. |
| 75 | func TestMetricsNilSafe(t *testing.T) { |
| 76 | t.Parallel() |
| 77 | |
| 78 | var m *aibridged.Metrics |
| 79 | require.NotPanics(t, func() { |
| 80 | m.RecordReloadAttempt() |
| 81 | m.RecordReloadSuccess(nil) |
| 82 | m.Unregister() |
| 83 | }) |
| 84 | } |
nothing calls this directly
no test coverage detected