(t *testing.T)
| 1448 | } |
| 1449 | |
| 1450 | func TestHTMLNoEscaping(t *testing.T) { |
| 1451 | out := &bytes.Buffer{} |
| 1452 | log := New(out) |
| 1453 | log.Log().Interface("head", "<test>").Send() |
| 1454 | if got, want := decodeIfBinaryToString(out.Bytes()), `{"head":"<test>"}`+"\n"; got != want { |
| 1455 | t.Errorf("invalid log output:\ngot: %v\nwant: %v", got, want) |
| 1456 | } |
| 1457 | } |