nohwnd/Profiler

Write tests

nohwnd opened this issue · 3 comments

  • check that no duration is longer than the calculated total
  • check that every line has duration >= self duration
  • check that calculated total close, but not over the wall clock time
  • check that there is only 1 item for Trace-ScriptInternal on start and end (this seemed to behave inconsistenly)

Partially fixed in #21, but it's flaky.

Improved in #22

We have basic tests, they saved me from pushing broken version few times. Imho this is done, as I/we will add more tests along the way.