Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How much of your code do you test?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00721300
Message ID:
00721609
Vues:
14
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform