mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-01-22 12:38:54 +00:00
e5df8c50d3
* style: nph setup * chore: formates codex/ and tests/ folder with nph 0.6.1
29 lines
476 B
Nim
29 lines
476 B
Nim
import ./helpers
|
|
|
|
## Unit testing suite that calls checkTrackers in teardown to check for memory leaks using chronos trackers.
|
|
template checksuite*(name, body) =
|
|
suite name:
|
|
proc suiteProc() =
|
|
multisetup()
|
|
|
|
teardown:
|
|
checkTrackers()
|
|
|
|
body
|
|
|
|
suiteProc()
|
|
|
|
template asyncchecksuite*(name, body) =
|
|
suite name:
|
|
proc suiteProc() =
|
|
asyncmultisetup()
|
|
|
|
teardown:
|
|
checkTrackers()
|
|
|
|
body
|
|
|
|
suiteProc()
|
|
|
|
export helpers
|