Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How much of your code do you test?
Message
De
21/11/2002 09:15:46
 
 
À
21/11/2002 08:36:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00721300
Message ID:
00725131
Vues:
10
Tamar,
>
>Jim - I think you're missing Mike's point. Good programming practice says that, for example, every CASE has an OTHERWISE, even if you believe you've enumerated all possibilities in the other cases. There's no way to test that OTHERWISE case, but it's better code to have it there than to remove it.

You're right, and your addition clears up my misunderstanding.

I would think that the programmer would still ensure that such code lines are executed (especially in an interpreted language) even if it meant putting them temporarily into another CASE or doing some other contrivance to test their functionality. But I would agree that system/QA testers wouldn't ever (presumably) test those lines.

thanks

>
>Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform