diff options
Diffstat (limited to 'rep/ept/core/apt/version.h.gcov.html')
-rw-r--r-- | rep/ept/core/apt/version.h.gcov.html | 160 |
1 files changed, 0 insertions, 160 deletions
diff --git a/rep/ept/core/apt/version.h.gcov.html b/rep/ept/core/apt/version.h.gcov.html deleted file mode 100644 index b17fdfb..0000000 --- a/rep/ept/core/apt/version.h.gcov.html +++ /dev/null @@ -1,160 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> - -<html lang="en"> - -<head> - <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> - <title>LCOV - lcov.info - ept/core/apt/version.h</title> - <link rel="stylesheet" type="text/css" href="../../../gcov.css"> -</head> - -<body> - - <table width="100%" border=0 cellspacing=0 cellpadding=0> - <tr><td class="title">LTP GCOV extension - code coverage report</td></tr> - <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr> - - <tr> - <td width="100%"> - <table cellpadding=1 border=0 width="100%"> - <tr> - <td class="headerItem" width="20%">Current view:</td> - <td class="headerValue" width="80%" colspan=4><a href="../../../index.html">directory</a> - <a href="index.html">ept/core/apt</a> - version.h</td> - </tr> - <tr> - <td class="headerItem" width="20%">Test:</td> - <td class="headerValue" width="80%" colspan=4>lcov.info</td> - </tr> - <tr> - <td class="headerItem" width="20%">Date:</td> - <td class="headerValue" width="20%">2008-08-14</td> - <td width="20%"></td> - <td class="headerItem" width="20%">Instrumented lines:</td> - <td class="headerValue" width="20%">32</td> - </tr> - <tr> - <td class="headerItem" width="20%">Code covered:</td> - <td class="headerValue" width="20%">93.8 %</td> - <td width="20%"></td> - <td class="headerItem" width="20%">Executed lines:</td> - <td class="headerValue" width="20%">30</td> - </tr> - </table> - </td> - </tr> - <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr> - </table> - - <table cellpadding=0 cellspacing=0 border=0> - <tr> - <td><br></td> - </tr> - <tr> - <td><pre class="source"> -<span class="lineNum"> 1 </span> : // -*- C++ -*- -<span class="lineNum"> 2 </span> : #ifndef EPT_CORE_APT_VERSION_H -<span class="lineNum"> 3 </span> : #define EPT_CORE_APT_VERSION_H -<span class="lineNum"> 4 </span> : -<span class="lineNum"> 5 </span> : namespace ept { -<span class="lineNum"> 6 </span> : namespace core { -<span class="lineNum"> 7 </span> : namespace version { -<span class="lineNum"> 8 </span> : -<span class="lineNum"> 9 </span><span class="lineCov"> 3616 : struct InternalList {</span> -<span class="lineNum"> 10 </span> : package::Internal m_pkg; -<span class="lineNum"> 11 </span> : Internal m_ver; -<span class="lineNum"> 12 </span> : -<span class="lineNum"> 13 </span> : typedef Internal Type; -<span class="lineNum"> 14 </span> : -<span class="lineNum"> 15 </span><span class="lineCov"> 3616 : InternalList tail() const {</span> -<span class="lineNum"> 16 </span><span class="lineCov"> 3616 : InternalList t = *this;</span> -<span class="lineNum"> 17 </span><span class="lineCov"> 3616 : t.m_ver ++;</span> -<span class="lineNum"> 18 </span><span class="lineCov"> 3616 : t.seek();</span> -<span class="lineNum"> 19 </span> : return t; -<span class="lineNum"> 20 </span> : } -<span class="lineNum"> 21 </span> : -<span class="lineNum"> 22 </span><span class="lineCov"> 5424 : const Internal head() const {</span> -<span class="lineNum"> 23 </span><span class="lineCov"> 5424 : return m_ver;</span> -<span class="lineNum"> 24 </span> : } -<span class="lineNum"> 25 </span> : -<span class="lineNum"> 26 </span> : Internal head() { -<span class="lineNum"> 27 </span> : return m_ver; -<span class="lineNum"> 28 </span> : } -<span class="lineNum"> 29 </span> : -<span class="lineNum"> 30 </span><span class="lineCov"> 3618 : bool empty() const {</span> -<span class="lineNum"> 31 </span><span class="lineCov"> 3618 : return m_pkg.end();</span> -<span class="lineNum"> 32 </span> : } -<span class="lineNum"> 33 </span> : -<span class="lineNum"> 34 </span><span class="lineCov"> 3618 : void seek()</span> -<span class="lineNum"> 35 </span> : { -<span class="lineNum"> 36 </span><span class="lineCov"> 14790 : while ( m_ver.end() && !m_pkg.end() ) {</span> -<span class="lineNum"> 37 </span><span class="lineCov"> 7554 : m_pkg ++;</span> -<span class="lineNum"> 38 </span><span class="lineCov"> 7554 : m_ver = m_pkg.VersionList();</span> -<span class="lineNum"> 39 </span> : } -<span class="lineNum"> 40 </span><span class="lineCov"> 3618 : }</span> -<span class="lineNum"> 41 </span> : -<span class="lineNum"> 42 </span><span class="lineCov"> 2 : InternalList( package::Internal i )</span> -<span class="lineNum"> 43 </span><span class="lineCov"> 2 : : m_pkg( i )</span> -<span class="lineNum"> 44 </span> : { -<span class="lineNum"> 45 </span><span class="lineCov"> 2 : m_ver = m_pkg.VersionList();</span> -<span class="lineNum"> 46 </span><span class="lineCov"> 2 : seek();</span> -<span class="lineNum"> 47 </span><span class="lineCov"> 2 : }</span> -<span class="lineNum"> 48 </span> : }; -<span class="lineNum"> 49 </span> : -<span class="lineNum"> 50 </span> : struct Setup { -<span class="lineNum"> 51 </span> : typedef ept::Token Token; -<span class="lineNum"> 52 </span> : typedef version::Internal Internal; -<span class="lineNum"> 53 </span> : typedef version::PropertyId PropertyId; -<span class="lineNum"> 54 </span> : typedef version::InternalList InternalList; -<span class="lineNum"> 55 </span> : }; -<span class="lineNum"> 56 </span> : -<span class="lineNum"> 57 </span> : struct Source : core::Source< Source, Setup, PropertyType > -<span class="lineNum"> 58 </span><span class="lineCov"> 12 : {</span> -<span class="lineNum"> 59 </span> : AptDatabase &m_db; -<span class="lineNum"> 60 </span><span class="lineCov"> 12 : Source( AptDatabase &db ) : m_db( db ) {}</span> -<span class="lineNum"> 61 </span> : -<span class="lineNum"> 62 </span><span class="lineCov"> 2 : InternalList listInternal() {</span> -<span class="lineNum"> 63 </span><span class="lineCov"> 2 : return InternalList( m_db.cache().PkgBegin() );</span> -<span class="lineNum"> 64 </span> : } -<span class="lineNum"> 65 </span> : -<span class="lineNum"> 66 </span><span class="lineCov"> 1808 : Token getToken( Internal i ) {</span> -<span class="lineNum"> 67 </span><span class="lineCov"> 1808 : Token t;</span> -<span class="lineNum"> 68 </span><span class="lineCov"> 1808 : t._id = std::string( i.ParentPkg().Name() ) + "_" + i.VerStr();</span> -<span class="lineNum"> 69 </span><span class="lineNoCov"> 0 : return t;</span> -<span class="lineNum"> 70 </span> : } -<span class="lineNum"> 71 </span> : -<span class="lineNum"> 72 </span> : Internal lookupToken( Token t ) { -<span class="lineNum"> 73 </span> : return m_db.lookupVersion( t ); -<span class="lineNum"> 74 </span> : } -<span class="lineNum"> 75 </span> : -<span class="lineNum"> 76 </span> : template< PropertyId p > -<span class="lineNum"> 77 </span> : typename PropertyType< p >::T getInternal( Internal ); -<span class="lineNum"> 78 </span> : }; -<span class="lineNum"> 79 </span> : -<span class="lineNum"> 80 </span> : template<> struct PropertyType< Package > { typedef Token T; }; -<span class="lineNum"> 81 </span> : -<span class="lineNum"> 82 </span><span class="lineCov"> 3616 : template<> inline Token Source::getInternal< Package >( Internal i ) {</span> -<span class="lineNum"> 83 </span><span class="lineCov"> 3616 : assert( !i.end() );</span> -<span class="lineNum"> 84 </span><span class="lineCov"> 3616 : Token t;</span> -<span class="lineNum"> 85 </span><span class="lineCov"> 7232 : t._id = i.ParentPkg().Name();</span> -<span class="lineNum"> 86 </span><span class="lineNoCov"> 0 : return t;</span> -<span class="lineNum"> 87 </span> : } -<span class="lineNum"> 88 </span> : -<span class="lineNum"> 89 </span> : } -<span class="lineNum"> 90 </span> : } -<span class="lineNum"> 91 </span> : } -<span class="lineNum"> 92 </span> : -<span class="lineNum"> 93 </span> : #endif -</pre> - </td> - </tr> - </table> - <br> - - <table width="100%" border=0 cellspacing=0 cellpadding=0> - <tr><td class="ruler"><img src="../../../glass.png" width=3 height=3 alt=""></td></tr> - <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr> - </table> - <br> - -</body> -</html> |