CTC++ Coverage Report- Untested Code

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: Index | No Index


Source file:f:\ctcwork\Demos\cube\cube.cpp
Instrumentation mode:multiconditionReduced to:MC/DC coverage
TER:95 % (19/20) structural,96 % (24/25) statement

Hits/TrueFalse-LineSource
455FUNCTION CCubeApp::InitInstance()
04-78  if (m_lpCmdLine [ 0 ] != '\0')
***TER95 % (19/20) of FILE cube.cpp
96 % (24/25) statement

Source file:f:\ctcwork\Demos\cube\cubedoc.cpp
Instrumentation mode:multiconditionReduced to:MC/DC coverage
TER:72 % (21/29) structural,75 % (15/20) statement

Hits/TrueFalse-LineSource
447FUNCTION CCubeDoc::OnNewDocument()
04-49  if (! CDocument::OnNewDocument ( ))
0-50    return 0
0-61FUNCTION CCubeDoc::Serialize()
00-63  if (ar . IsStoring ( ))
0-71}
0-82FUNCTION CCubeDoc::Dump()
0-85}
***TER72 % (21/29) of FILE cubedoc.cpp
75 % (15/20) statement

Source file:f:\ctcwork\Demos\cube\cubeview.cpp
Instrumentation mode:multiconditionReduced to:MC/DC coverage
TER:63 % (67/107) structural,79 % (155/196) statement

Hits/TrueFalse-LineSource
0-123FUNCTION CCubeView::Dump()
0-126}
4161FUNCTION CCubeView::OnCreate()
04-163  if (CView::OnCreate ( lpCreateStruct ) == - 1)
0-164    return - 1
4171FUNCTION CCubeView::OnDestroy()
40-181  if (hrc)
04-184  if (m_pOldPalette)
40-187  if (m_pDC)
12193FUNCTION CCubeView::OnSize()
--201      MC/DC (cond 1): 1 - 3
4228FUNCTION CCubeView::Init()
04-240  if (! bSetupPixelFormat ( ))
0-241    return
04-255  if (m_oldRect . bottom)
4270FUNCTION CCubeView::bSetupPixelFormat()
04-295  if (( pixelformat = ChoosePixelFormat ( m_pDC -> GetSafeHdc ( ) , & pfd ) ) == 0)
0-298    return 0
04-301  if (SetPixelFormat ( m_pDC -> GetSafeHdc ( ) , pixelformat , & pfd ) == 0)
0-304    return 0
0-310FUNCTION CCubeView::ComponentFromIndex()
0-318  case 1:
0-320    return oneto8 [ val ]
0-321  case 2:
0-323    return twoto8 [ val ]
0-324  case 3:
0-326    return threeto8 [ val ]
0-328  default:
0-329    return 0
4334FUNCTION CCubeView::CreateRGBPalette()
04-343  if (pfd . dwFlags & 0x00000080)
00-352    for (;i < n;)
00-367    if (( pfd . cColorBits == 8 ) && ( pfd . cRedBits == 3 ) && ( pfd . cRedShift == 0 ) && ( pfd . cGreenBits == 3 ) && ( pfd . cGreenShift == 3 ) && ( pfd . cBlueBits == 2 ) && ( pfd . cBlueShift == 6 ))
--367      MC/DC (cond 1): 1 - 8
--367      MC/DC (cond 2): 1 - 7
--367      MC/DC (cond 3): 1 - 6
--367      MC/DC (cond 4): 1 - 5
--367      MC/DC (cond 5): 1 - 4
--367      MC/DC (cond 6): 1 - 3
--367      MC/DC (cond 7): 1 - 2
00-370      for (;i <= 12;)
642383FUNCTION CCubeView::DrawScene()
0642-390  if (bBusy)
0-391    return
***TER63 % (67/107) of FILE cubeview.cpp
79 % (155/196) statement

Source file:f:\ctcwork\Demos\cube\mainfrm.cpp
Instrumentation mode:multiconditionReduced to:MC/DC coverage
TER:59 % (24/41) structural,56 % (22/39) statement

Hits/TrueFalse-LineSource
461FUNCTION CMainFrame::OnCreate()
04-63  if (CFrameWnd::OnCreate ( lpCreateStruct ) == - 1)
0-64    return - 1
04-69  if (! m_wndToolBar . Create ( this ) || ! m_wndToolBar . LoadBitmapA ( 128 ) || ! m_wndToolBar . SetButtons ( buttons , sizeof ( buttons ) / sizeof ( UINT ) ))
--69    MC/DC (cond 1): 1 - 4
--69    MC/DC (cond 2): 2 - 4
--69    MC/DC (cond 3): 3 - 4
0-72    return - 1
0-97FUNCTION CMainFrame::Dump()
0-100}
0-107FUNCTION CMainFrame::OnPaletteChanged()
00-111  if (pFocusWnd != this)
0-113}
0-115FUNCTION CMainFrame::OnQueryNewPalette()
00-127  if (i > 0)
0-131  return CFrameWnd::OnQueryNewPalette ( )
***TER59 % (24/41) of FILE mainfrm.cpp
56 % (22/39) statement

Source file:F:\ctcwork\v82\doc\examples\calc.c
Instrumentation mode:multiconditionReduced to:MC/DC coverage
TER:63 % (10/16) structural,82 % (9/11) statement

Hits/TrueFalse-LineSource
34FUNCTION is_prime()
--8    MC/DC (cond 1): 1 - 4
--8    MC/DC (cond 3): 3 - 4
01-12  for (;divisor < val / 2;)
00-14    if (val % divisor == 0)
0-15      return 0
***TER63 % (10/16) of FILE calc.c
82 % (9/11) statement

Source file:F:\ctcwork\v82\doc\examples\io.c
Instrumentation mode:multiconditionReduced to:MC/DC coverage
TER:83 % (5/6) structural,86 % (6/7) statement

Hits/TrueFalse-LineSource
45FUNCTION io_ask()
04-11  if (( amount = scanf ( "%u" , & val ) ) <= 0)
***TER83 % (5/6) of FILE io.c
86 % (6/7) statement

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: Index | No Index