# \#allocated

**URL:** https://discourse.julialang.org/tag/allocated/1780.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How do I get Test Coverage not to mess up @allocated calculations](https://discourse.julialang.org/t/how-do-i-get-test-coverage-not-to-mess-up-allocated-calculations/128418)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 3\
**Last updated:** [April 27, 2025, 8:29pm UTC](https://discourse.julialang.org/t/how-do-i-get-test-coverage-not-to-mess-up-allocated-calculations/128418 "2025-04-27T20:29:23Z")

</div>

I have a runtests.jl which does something like this. ff()=@allocated myfun(vara,varb, varc) @test ff()=0 This returns true if not running with code coverage and then it fails when testing with code-coverage. But not …
