(t *testing.T)
| 768 | } |
| 769 | |
| 770 | func TestReportCallerOnTextFormatter(t *testing.T) { |
| 771 | l := New() |
| 772 | |
| 773 | l.Formatter.(*TextFormatter).ForceColors = true |
| 774 | l.Formatter.(*TextFormatter).DisableColors = false |
| 775 | l.WithFields(Fields{"func": "func", "file": "file"}).Info("test") |
| 776 | |
| 777 | l.Formatter.(*TextFormatter).ForceColors = false |
| 778 | l.Formatter.(*TextFormatter).DisableColors = true |
| 779 | l.WithFields(Fields{"func": "func", "file": "file"}).Info("test") |
| 780 | } |
| 781 | |
| 782 | func TestSetReportCallerRace(t *testing.T) { |
| 783 | l := New() |
nothing calls this directly
no test coverage detected