CTC++ Coverage Report- Execution Profile#2/7

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: First | Previous | Next | Last | Index | No Index


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

Hits/TrueFalseLineSource
1// cubedoc.cpp : implementation of the CCubeDoc class
2//
3// This is a part of the Microsoft Foundation Classes C++ library.
4// Copyright (c) Microsoft Corporation.  All rights reserved.
5//
6// This source code is only intended as a supplement to the
7// Microsoft Foundation Classes Reference and related
8// electronic documentation provided with the library.
9// See these sources for detailed information regarding the
10// Microsoft Foundation Classes product.
11
12#include "stdafx.h"
13#include "cube.h"
14
15#include "cubedoc.h"
16
17#ifdef _DEBUG
18#undef THIS_FILE
19static char BASED_CODE THIS_FILE[] = __FILE__;
20#endif
21
22/////////////////////////////////////////////////////////////////////////////
23// CCubeDoc
24
Top
125IMPLEMENT_DYNCREATE(CCubeDoc, CDocument)
125  return new CCubeDoc
25}
Top
39925FUNCTION CCubeDoc::_GetBaseClass()
39925  return ( CDocument::GetThisClass ( ) )
25}
Top
225FUNCTION CCubeDoc::GetThisClass()
225  return ( ( CRuntimeClass * ) ( & CCubeDoc::classCCubeDoc ) )
25}
Top
432625FUNCTION CCubeDoc::GetRuntimeClass()
432625  return ( ( CRuntimeClass * ) ( & CCubeDoc::classCCubeDoc ) )
25}
26
Top
82827BEGIN_MESSAGE_MAP(CCubeDoc, CDocument)
82827  return GetThisMessageMap ( )
27}
Top
82827FUNCTION CCubeDoc::GetThisMessageMap()
28   //{{AFX_MSG_MAP(CCubeDoc)
29      // NOTE - the ClassWizard will add and remove mapping macros here.
30      //    DO NOT EDIT what you see in these blocks of generated code!
31   //}}AFX_MSG_MAP
82832END_MESSAGE_MAP()
32}
33
34/////////////////////////////////////////////////////////////////////////////
35// CCubeDoc construction/destruction
36
Top
137CCubeDoc::CCubeDoc()
38{
39   // TODO: add one-time construction code here
40
141}
42
Top
143CCubeDoc::~CCubeDoc()
44{
145}
46
Top
147BOOL CCubeDoc::OnNewDocument()
48{
0 149   if (!CDocument::OnNewDocument())
050      return FALSE;
51
52   // TODO: add reinitialization code here
53   // (SDI documents will reuse this document)
54
155   return TRUE;
56}
57
58/////////////////////////////////////////////////////////////////////////////
59// CCubeDoc serialization
60
Top
061void CCubeDoc::Serialize(CArchive& ar)
62{
0 063   if (ar.IsStoring())
64   {
65      // TODO: add storing code here
66   }
67   else
68   {
69      // TODO: add loading code here
70   }
071}
72
73/////////////////////////////////////////////////////////////////////////////
74// CCubeDoc diagnostics
75
76#ifdef _DEBUG
Top
392777void CCubeDoc::AssertValid() const
78{
79   CDocument::AssertValid();
392780}
81
Top
082void CCubeDoc::Dump(CDumpContext& dc) const
83{
84   CDocument::Dump(dc);
085}
86#endif //_DEBUG
87
88/////////////////////////////////////////////////////////////////////////////
89// CCubeDoc commands
***TER72 % (21/29) of FILE cubedoc.cpp
75 % (15/20) statement

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: First | Previous | Next | Last | Top | Index | No Index