LTP GCOV extension - code coverage report
Current view: | directory - ept - test.h
Test: | lcov.info
Date: | 2008-08-14 |  | Instrumented lines: | 15
Code covered: | 100.0 % |  | Executed lines: | 15

           1                 : #include <ept/core/apt.h>
           2                 : #include <ept/config.h>
           3                 : #include <ept/debtags/maint/path.h>
           4                 :
           5                 : #include <wibble/test.h>
           6                 :
           7                 : #ifndef EPT_TEST_H
           8                 : #define EPT_TEST_H
           9                 :
          10              73 : struct AptTestEnvironment {
          11                 :     ept::core::AptDatabase db;
          12              73 :     AptTestEnvironment() {
          13              73 :         pkgInitConfig (*_config);
          14              73 :         _config->Set("Initialized", 1);
          15              73 :         _config->Set("Dir", TEST_ENV_DIR);
          16             146 :         _config->Set("Dir::Cache", "cache");
          17             146 :         _config->Set("Dir::State", "state");
          18             146 :         _config->Set("Dir::Etc", "etc");
          19             146 :         _config->Set("Dir::State::status", TEST_ENV_DIR "dpkg-status");
          20              73 :         pkgInitSystem (*_config, _system);
          21              73 :     }
          22                 : };
          23                 :
          24              29 : struct DebtagsTestEnvironment : AptTestEnvironment {
          25                 :     ept::debtags::Path::OverrideDebtagsSourceDir odsd;
          26                 :     ept::debtags::Path::OverrideDebtagsIndexDir odid;
          27                 :     ept::debtags::Path::OverrideDebtagsUserSourceDir odusd;
          28                 :     ept::debtags::Path::OverrideDebtagsUserIndexDir oduid;
          29                 :
          30              29 :     DebtagsTestEnvironment()
          31                 :         : odsd( TEST_ENV_DIR "debtags/"),
          32                 :           odid( TEST_ENV_DIR "debtags/"),
          33                 :           odusd( TEST_ENV_DIR "debtags/"),
          34              29 :           oduid( TEST_ENV_DIR "debtags/")
          35              29 :     {}
          36                 : };
          37                 :
          38                 : #endif

Generated by: LTP GCOV extension version 1.6