(b *testing.B)
| 36 | } |
| 37 | |
| 38 | func BenchmarkNormalizeRawJSONTrimmed256B(b *testing.B) { |
| 39 | raw := benchmarkRawJSONWithWhitespace(256) |
| 40 | |
| 41 | b.ReportAllocs() |
| 42 | |
| 43 | for b.Loop() { |
| 44 | if got := normalizeRawJSON(raw); len(got) == 0 { |
| 45 | b.Fatal("normalizeRawJSON() = nil, want non-empty payload") |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func BenchmarkSameRawJSONTrimmed256B(b *testing.B) { |
| 51 | trimmed := json.RawMessage(strings.TrimSpace(string(benchmarkRawJSONWithWhitespace(256)))) |
nothing calls this directly
no test coverage detected