From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,595c75298fbdce96 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Is Aunit helpful? Date: Sun, 15 Aug 2010 12:46:44 +0100 Organization: A noiseless patient Spider Message-ID: References: <8a1e58c0-2330-4475-8013-97df103dd85e@o19g2000yqb.googlegroups.com> <82r5ids1o9.fsf@stephe-leake.org> <20100805211820.52c18cb5.tero.koskinen@iki.fi> <8d166cfb-4850-42b6-ac25-d9ac00df7565@q35g2000yqn.googlegroups.com> <82ocd5wukf.fsf@stephe-leake.org> <3957496a-af4b-45f5-87c9-327b22d19f08@x21g2000yqa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 15 Aug 2010 11:46:46 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="29803"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zSo0pwewULGT8fobb7RI8cNO0hfW8nB8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:7a3DyvQC35m/xuzyRvvCFx7Q3eI= sha1:EGxDsERHAZlWOOn/Wt3ibFN9URE= Xref: g2news1.google.com comp.lang.ada:13331 Date: 2010-08-15T12:46:44+01:00 List-Id: Midoan writes: > On Aug 14, 10:38 pm, Yannick Duchêne (Hibou57) > wrote: >> Le Sat, 14 Aug 2010 23:33:32 +0200, Midoan 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.