(t *testing.T)
| 111 | } |
| 112 | |
| 113 | func TestStringWithQuotes(t *testing.T) { |
| 114 | l := New("test") |
| 115 | b := new(bytes.Buffer) |
| 116 | l.SetOutput(b) |
| 117 | l.SetLevel(DEBUG) |
| 118 | l.Debugf("Content-Type: %q", "") |
| 119 | assert.Contains(t, b.String(), `"message":"Content-Type: \"\""`) |
| 120 | } |
| 121 | |
| 122 | func TestEmptyHeader(t *testing.T) { |
| 123 | l := New("test") |