(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func TestSetLogSink(t *testing.T) { |
| 63 | var calls []string |
| 64 | |
| 65 | SetLogSink(&sink{ |
| 66 | fnInfo: func(_ int, m string, _ ...any) { |
| 67 | calls = append(calls, m) |
| 68 | }, |
| 69 | }) |
| 70 | |
| 71 | global.Info("called") |
| 72 | assert.DeepEqual(t, calls, []string{"called"}) |
| 73 | } |
nothing calls this directly
no test coverage detected