2023-06-22 18:01:21 +00:00
|
|
|
import ./helpers
|
|
|
|
|
|
|
|
## Unit testing suite that calls checkTrackers in teardown to check for memory leaks using chronos trackers.
|
|
|
|
template checksuite*(name, body) =
|
|
|
|
suite name:
|
|
|
|
|
2024-01-10 21:25:57 +00:00
|
|
|
proc suiteProc =
|
|
|
|
multisetup()
|
|
|
|
|
|
|
|
teardown:
|
|
|
|
checkTrackers()
|
2023-06-22 18:01:21 +00:00
|
|
|
|
|
|
|
body
|
|
|
|
|
2024-01-10 21:25:57 +00:00
|
|
|
suiteProc()
|
2023-06-22 18:01:21 +00:00
|
|
|
|
|
|
|
template asyncchecksuite*(name, body) =
|
|
|
|
suite name:
|
|
|
|
|
2024-01-10 21:25:57 +00:00
|
|
|
proc suiteProc =
|
|
|
|
asyncmultisetup()
|
|
|
|
|
|
|
|
teardown:
|
|
|
|
checkTrackers()
|
|
|
|
|
|
|
|
body
|
2023-06-22 18:01:21 +00:00
|
|
|
|
2024-01-10 21:25:57 +00:00
|
|
|
suiteProc()
|
2023-06-22 18:01:21 +00:00
|
|
|
|
|
|
|
export helpers
|