# Can Zig's test runner detect resource leaks?

**URL:** <https://ziggit.dev/t/can-zigs-test-runner-detect-resource-leaks/9899>\
**Category:** Brainstorming\
**Tags:** testing\
**Created:** [April 29, 2025, 3:43pm UTC](https://ziggit.dev/t/can-zigs-test-runner-detect-resource-leaks/9899 "2025-04-29T15:43:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sze](https://ziggit.dev/user_avatar/ziggit.dev/sze/32/496_2.png) [@Sze](https://ziggit.dev/u/Sze)\
**Post date:** [April 29, 2025, 4:02pm UTC](https://ziggit.dev/t/can-zigs-test-runner-detect-resource-leaks/9899/2 "2025-04-29T16:02:30Z")

</div>

I think this might make it so that we can do similar detection, for some of those other resources:

> [@The new \`Io\` abstraction](https://ziggit.dev/t/the-new-io-abstraction/9404):
>
> Beware, the following is a long-winded reflection on the current discussion on async and IO abstraction. There is no purpose to it but to organize my thoughts and comes from someone with limited understanding of what is being achieved. In his [last live stream](https://youtu.be/0kUvoU60pbc?feature=shared), Andrew K. shared his reflection (intention?) to start working on async/await again and started introducing a new concept: the IO interface. My understanding of it is this Io interface is an [inversion of control](https://en.wikipedia.org/wiki/Inversion_of_control). It’s an abstraction that …

But the last one seems like it would require some sort of custom validation tooling, or adding support for validation, unless you also invent some sort of interface convention for your `myUserCodeStart` functions.

---

_[View the full topic](https://ziggit.dev/t/can-zigs-test-runner-detect-resource-leaks/9899)._
