Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How much of your code do you test?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00721300
Message ID:
00721609
Views:
13
>>Every module is indepently tested and proven to work as designed. Most of the problems I run into are related to bad data.
>
>Good.
>So if some module has CASEs and/or IFs and/or loops with early exit possibilities, do you test ALL CASEs, ALL possibilities of IF/ELSE/ENDIF and both full and early-exit loops?
>From what you've said here, I'd say that you do.
>
>Thanks

Absolutely, however, with my personal coding standards, there are two rules that I follow which make the work simpler than otherwise might be the case.

First: No premature exits of iteration structures. If an exit is required that's predicated on a logical condition, then a DO WHILE...ENDDO loop is used.

Second: Each module has one, and only one exit point, namely the last line.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform