Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 262365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:30:34+00:00 2026-05-11T22:30:34+00:00

I have installed on my computer C++Test only with UnitTest license (only Unit Test

  • 0

I have installed on my computer C++Test only with UnitTest license (only Unit Test license) as a Visual Studio 2005 plugin ( cpptest_7.2.11.35_win32_vs2005_plugin.exe ).

I have a sample similar to the following:

bool MyFunction(... parameters... )
{
    bool bRet = true;

        // do something
    if( some_condition )
    {
        // do something
        bRet = CallToAFunctionThatCanReturnBothTrueAndFalse....
    }
    else
    {
        bRet = false;
        // do something
    }

    if(bRet == false)
    {
        // do something
    }

    return bRet;
}

In my case after running the coverage tool I have the following results (for a function similar to the previously mentioned):

[LC=100 BC=100 PC=75 DC=100 SCC=100 MCDC=50 (%)]

I really don’t understand why I don’t have 100% coverage when it comes to PathCoverage (PC).
Also if someone who has experience with C++Test Parasoft could explain the low MCDC coverage for me that would be great.

What should I do to increase coverage? as I’m out of ideas in this case.
Directions to (some parts of) the documentation are welcome.

Thank you,

Iulian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:30:35+00:00Added an answer on May 11, 2026 at 10:30 pm

    This is a good reference on the various types of code coverage: http://www.bullseye.com/coverage.html.

    MCDC: To improve MCDC coverage you’ll need to look at some_condition. Assuming it’s a complex boolean expression, you’ll need to look at whether you’re exercising the necessary combinations of values. Specifically, each boolean sub-expression needs to be exercised true and false.

    Path: One of the things mentioned in the link above as being a disadvantage of path coverage is that many paths are impossible to exercise. That may be the case with your example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just installed xammp in my computer, and to test it, I starte
I'm learning C++ and i have the eVT(eMbedded Visual Tools) installed in my computer,
I have created a windows service by using (Visual Studio 8) and installed it
I have installed Crystal Reports 8.5 on my computer recently. But When I open
i have installed SharePoint 2007 and VS2008 extension on my computer.i have created a
I have installed Oracle 10g in one of my office's computer. I want to
I've got two hard disks in my computer, and have installed Solaris 10u8 on
I have just installed QAS Pro Web on a computer and I am now
In case I have .NET framework installed in my computer + all the necessary
I have the RC build of VS2010 installed on my computer. Now that the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.