(t *testing.T)
| 111 | } |
| 112 | |
| 113 | func TestRunEscapesTripleBackticksInOutput(t *testing.T) { |
| 114 | t.Parallel() |
| 115 | |
| 116 | jsonFile := writeEvents(t, |
| 117 | testEvent{Action: "output", Package: "example.com/pkg", Test: "TestFail", Output: "before ``` after\n"}, |
| 118 | testEvent{Action: "fail", Package: "example.com/pkg", Test: "TestFail", Elapsed: 0.10}, |
| 119 | ) |
| 120 | |
| 121 | markdown := runMarkdown(t, jsonFile, config{MaxOutputBytes: 8192}) |
| 122 | require.Contains(t, markdown, "before `` after") |
| 123 | require.Equal(t, 2, strings.Count(markdown, "```")) |
| 124 | } |
| 125 | |
| 126 | func TestRunMaxFailuresAddsOmittedLine(t *testing.T) { |
| 127 | t.Parallel() |
nothing calls this directly
no test coverage detected