Describing Get-ChocoLogEntry
Context For Single File
[+] Parses the correct number of sessions 39ms (34ms|5ms)
Error: [-] Parses the correct number of lines per session 454ms (451ms|3ms)
Message
Expected 10, but got 1.
at $script:parsedEntry.logs.Count | Should -Be 10, D:\a\ChocoLogParse\ChocoLogParse\tests\ChocoLogParse.tests.ps1:143
at <ScriptBlock>, D:\a\ChocoLogParse\ChocoLogParse\tests\ChocoLogParse.tests.ps1:143
Error: [-] Detects the exit code 287ms (285ms|2ms)
Message
Expected 900, but got $null.
at $script:parsedEntry.exitCode | Should -Be 900, D:\a\ChocoLogParse\ChocoLogParse\tests\ChocoLogParse.tests.ps1:147
at <ScriptBlock>, D:\a\ChocoLogParse\ChocoLogParse\tests\ChocoLogParse.tests.ps1:147
Error: [-] Detects the right session number 8ms (6ms|1ms)
Message
Expected 54321, but got 12345.
at $script:parsedEntry.thread | Should -Be 54321, D:\a\ChocoLogParse\ChocoLogParse\tests\ChocoLogParse.tests.ps1:151
at <ScriptBlock>, D:\a\ChocoLogParse\ChocoLogParse\tests\ChocoLogParse.tests.ps1:151
Error: [-] Has Configuration with Subkeys 53ms (51ms|1ms)
Message
RuntimeException: Cannot index into a null array.
at <ScriptBlock>, D:\a\ChocoLogParse\ChocoLogParse\tests\ChocoLogParse.tests.ps1:155