Remove confusing <//> (#17830)
This commit is contained in:
parent
9e6f2d7d18
commit
68e522ecec
7 changed files with 29 additions and 31 deletions
|
|
@ -218,7 +218,7 @@ proc resetOutputFormatters* {.since: (1, 1).} =
|
|||
formatters = @[]
|
||||
|
||||
proc newConsoleOutputFormatter*(outputLevel: OutputLevel = outputLevelDefault,
|
||||
colorOutput = true): <//>ConsoleOutputFormatter =
|
||||
colorOutput = true): ConsoleOutputFormatter =
|
||||
ConsoleOutputFormatter(
|
||||
outputLevel: outputLevel,
|
||||
colorOutput: colorOutput
|
||||
|
|
@ -246,7 +246,7 @@ proc colorOutput(): bool =
|
|||
deprecateEnvVarHere()
|
||||
result = false
|
||||
|
||||
proc defaultConsoleFormatter*(): <//>ConsoleOutputFormatter =
|
||||
proc defaultConsoleFormatter*(): ConsoleOutputFormatter =
|
||||
var colorOutput = colorOutput()
|
||||
var outputLevel = nimUnittestOutputLevel.parseEnum[:OutputLevel]
|
||||
when declared(stdout):
|
||||
|
|
@ -315,7 +315,7 @@ proc xmlEscape(s: string): string =
|
|||
else:
|
||||
result.add(c)
|
||||
|
||||
proc newJUnitOutputFormatter*(stream: Stream): <//>JUnitOutputFormatter =
|
||||
proc newJUnitOutputFormatter*(stream: Stream): JUnitOutputFormatter =
|
||||
## Creates a formatter that writes report to the specified stream in
|
||||
## JUnit format.
|
||||
## The ``stream`` is NOT closed automatically when the test are finished,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue