As is using the function that will be used in production and unlinking to it. The fewer differences between production and testing, the better. If this is useful in testing, and intended only for testing, it should be wrapped in an -ifdef.