Commit 5f284b8
committed
test: cover ErrorFormatter direct path in HandleExitCoder
Adds TestHandleExitCoder_ErrorFormatterDirect to exercise the Fprintf
branch in HandleExitCoder when an ExitCoder also implements
ErrorFormatter and is passed in directly. The existing
TestHandleExitCoder_ErrorFormatter routes through a multiError which
goes down a different branch, so the direct path was not hit by any
test (codecov patch).
Signed-off-by: alliasgher <alliasgher123@gmail.com>1 parent 5200861 commit 5f284b8
1 file changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
0 commit comments