From: howell@COMMUNITY-CHEST.MITRE.ORG
Subject: Testing hidden subpgms and state data
Date: 4 May 88 13:54:52 GMT [thread overview]
Message-ID: <8805041354.AA02809@boardwalk.mitre.org> (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
next reply other threads:[~1988-05-04 13:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1988-05-04 13:54 howell [this message]
1988-05-04 17:36 ` Testing hidden subpgms and state data Charlie Martin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox