comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Is Aunit helpful?
Date: Sun, 15 Aug 2010 12:46:44 +0100
Date: 2010-08-15T12:46:44+01:00	[thread overview]
Message-ID: <m2vd7ct7x7.fsf@pushface.org> (raw)
In-Reply-To: e149f80d-96a1-40cd-a84b-7215ff9f847c@c10g2000yqi.googlegroups.com

Midoan <midoan.ses@gmail.com> writes:

> On Aug 14, 10:38 pm, Yannick Duchêne (Hibou57)
> <yannick_duch...@yahoo.fr> wrote:
>> Le Sat, 14 Aug 2010 23:33:32 +0200, Midoan <midoan....@gmail.com> a
écrit:
>> > This can be done to achieve branch, decision or MC/DC coverage as
>> > desired.
>>
>> What is MC/DC please ?
>
> MC/DC stands for Modified Condition/Decision Coverage. Informally, it
> forces deep testing of conditional expressions as in "IF A and B or C
> THEN ..." where several tests would be required for the "A and B or C"
> expression whereas branch and decision testing would only require two
> (one for a True outcome and one for a False outcome). It is a more
> thorough, if somewhat badly defined, coverage criterion often required
> for high integrity systems.

Reverting to the use of gcov: even if you got full gcov coverage, that
wouldn't tell you whether the False outcome had actually
occurred. (well, there are options to check for that -- but, as far as I
can see on a quick check, they aren't very helpful, because they report
on the branches in the object code, which includes (for instance) all
the range checks that always succeed in a well-written Ada program!).

Most often, tools such as Midoan is discussing will involve
automatically instrumenting the source code, so that they can report at
the appropriate (source) level.



  reply	other threads:[~2010-08-15 11:46 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-04 14:19 Is Aunit helpful? Ada novice
2010-08-05 12:07 ` Stephen Leake
2010-08-05 17:29   ` Ada novice
2010-08-05 18:18     ` Tero Koskinen
2010-08-05 20:39       ` Ada novice
2010-08-05 20:57         ` Simon Wright
2010-08-13 16:43         ` Yannick Duchêne (Hibou57)
2010-08-13 19:34           ` Simon Wright
2010-08-13 20:59             ` Yannick Duchêne (Hibou57)
2010-08-14  6:57           ` Stephen Leake
2010-08-14 13:38             ` Yannick Duchêne (Hibou57)
2010-08-14 21:33             ` Midoan
2010-08-14 21:38               ` Yannick Duchêne (Hibou57)
2010-08-14 21:49                 ` Simon Wright
2010-08-14 22:04                   ` Yannick Duchêne (Hibou57)
2010-08-15  7:57                 ` Midoan
2010-08-15 11:46                   ` Simon Wright [this message]
2010-08-15 12:10               ` Stephen Leake
2010-08-15 21:47                 ` Midoan
2010-08-15 22:58                   ` Yannick Duchêne (Hibou57)
2010-08-17  2:46                     ` Randy Brukardt
2010-08-17 12:37                       ` Cyrille
2010-08-20  9:22                         ` Yannick Duchêne (Hibou57)
2010-08-20  9:20                       ` Yannick Duchêne (Hibou57)
2010-08-16  7:59                   ` Stephen Leake
2010-08-16  9:02                     ` Midoan
2010-08-26 17:45                       ` Colin Paul Gloster
2010-08-07 16:57       ` Marco
2010-08-13 14:09       ` Yannick Duchêne (Hibou57)
2010-08-05 20:48     ` Simon Wright
2010-08-06  9:06       ` Ada novice
2010-08-06 16:51         ` Simon Wright
2010-08-06 18:13           ` Ada novice
2010-08-08 13:39 ` John McCormick
2010-08-08 17:10   ` Ada novice
2010-08-09 17:05     ` John McCormick
2010-08-09 17:23       ` Michael R
2010-08-10  8:33         ` Ada novice
2010-08-10 13:48           ` John McCormick
2010-08-10  9:45       ` Mark Lorenzen
2010-08-10 14:07         ` John McCormick
2010-08-10 17:32       ` Ada novice
2010-08-12 15:04         ` John McCormick
2010-08-17 15:51           ` Ada novice
2010-08-13 15:31 ` Yannick Duchêne (Hibou57)
replies disabled

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