(t *testing.T)
| 780 | } |
| 781 | |
| 782 | func TestSetReportCallerRace(t *testing.T) { |
| 783 | l := New() |
| 784 | l.Out = io.Discard |
| 785 | l.SetReportCaller(true) |
| 786 | |
| 787 | var wg sync.WaitGroup |
| 788 | wg.Add(100) |
| 789 | |
| 790 | for i := 0; i < 100; i++ { |
| 791 | go func() { |
| 792 | l.Error("Some Error") |
| 793 | wg.Done() |
| 794 | }() |
| 795 | } |
| 796 | wg.Wait() |
| 797 | } |
nothing calls this directly
no test coverage detected