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-29 20:03:51 +00:00
|
|
|
proc suiteProc =
|
|
|
|
multisetup()
|
2023-06-22 18:01:21 +00:00
|
|
|
|
2024-01-29 20:03:51 +00:00
|
|
|
teardown:
|
|
|
|
checkTrackers()
|
2023-06-22 18:01:21 +00:00
|
|
|
|
|
|
|
body
|
|
|
|
|
2024-01-29 20:03:51 +00:00
|
|
|
suiteProc()
|
2023-06-22 18:01:21 +00:00
|
|
|
|
|
|
|
template asyncchecksuite*(name, body) =
|
|
|
|
suite name:
|
2024-01-29 20:03:51 +00:00
|
|
|
proc suiteProc =
|
|
|
|
asyncmultisetup()
|
2023-06-22 18:01:21 +00:00
|
|
|
|
2024-01-29 20:03:51 +00:00
|
|
|
teardown:
|
|
|
|
checkTrackers()
|
2023-06-22 18:01:21 +00:00
|
|
|
|
2024-01-29 20:03:51 +00:00
|
|
|
body
|
|
|
|
|
|
|
|
suiteProc()
|
2023-06-22 18:01:21 +00:00
|
|
|
|
|
|
|
export helpers
|