# Add \`std.testing.checkAllAllocationFailures\` · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6d04ab6d5be1eaa47a920aaa3989bd3515fec5d6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6d04ab6d5be1eaa47a920aaa3989bd3515fec5d6

Requested commit: 6d04ab6d5be1eaa47a920aaa3989bd3515fec5d6

Commit: 6d04ab6d5be1eaa47a920aaa3989bd3515fec5d6

Tree: ab350433d9238a240c4e7a59664edb94b557adf7

Author: Ryan Liptak

Committer: Veikka Tuominen

## Message

```
Add `std.testing.checkAllAllocationFailures`

Adds a function that allows checking for memory leaks (and other problems) by taking advantage of the FailingAllocator and inducing failure at every allocation point within the provided `test_fn` (based on the strategy employed in the Zig parser tests, which can now use this function).

```

## Parents

- [91eb1af9177d774158d888484023e3bf0be65412](https://git.cafe/gitcafe/zig/commit/91eb1af9177d774158d888484023e3bf0be65412?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6d04ab6d5be1eaa47a920aaa3989bd3515fec5d6?format=markdown)
