Closed mx4492 closed 10 years ago
GTM
Missing assertion on path
- As of today, I'm not convinced of the relative merit of having blanket asserts for all arguments (which is almost always the case).
- Such asserts are not a currently a practice for Chocolate (there are only a couple such in place).
Still, if you think that we should add parameter-asserts going forward, then I'll make these changes. But note that we will not be able to use TDTParameterAssert
for block
, because that is part of testing additions (which does not take a dependency on the foundation additions).
These are not really blanket assertions. A nil
value doesn't make any sense here. If the app doesn't crash, you will end up with a hard to debug issue.
Updated. I've used an NSParameterAssert
for the method in testing additions.
These are two PRs in one because the second commit has a dependency on the first.