comp.lang.ada
 help / color / mirror / Atom feed
* Testing hidden subpgms and state data
@ 1988-05-04 13:54 howell
  1988-05-04 17:36 ` Charlie Martin
  0 siblings, 1 reply; 2+ messages in thread
From: howell @ 1988-05-04 13:54 UTC (permalink / raw)


It's me again...  Different question.

How do you test (unit test, CSC, etc) subprograms that are not visible in 
a package spec, and the "state" that they may affect (e.g., variables
declared in the package body)?  The two approaches I've seen most often are

    a) Put test code in the sequence_of_statements part of the package
	body so that the tests run at package body elaboration time.

    b) Add one or more "hooks" into the package spec in order to allow
	test code to access the hidden subprograms.

What other alternatives have you seen?  What are the strengths & weakness
of the various approaches?   Any comments are appreciated,
 
     Chuck Howell
     The MITRE Corporation, Mail Stop Z645
     7525 Colshire Drive, McLean, VA 22102
     NET:  howell@mitre.arpa or 
           howell%community-chest.mitre.org@gateway.mitre.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1988-05-04 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1988-05-04 13:54 Testing hidden subpgms and state data howell
1988-05-04 17:36 ` Charlie Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox