LCOV - code coverage report
Current view: top level - tests/memory - manager_suite.cpp (source / functions) Hit Total Coverage
Test: v-set-coverage.info Lines: 16 16 100.0 %
Date: 2019-09-12 Functions: 13 13 100.0 %

          Line data    Source code
       1             : //
       2             : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2012
       3             : //
       4             : // Copyright: See COPYING file that comes with this distribution
       5             : //
       6             : 
       7             : #include <fas/testing.hpp>
       8             : #include <vset/memory/fsb_mmap.hpp>
       9             : #include <vset/memory/fsb_filesync.hpp>
      10             : #include <vset/memory/fsb_inmem.hpp>
      11             : 
      12           3 : UNIT(fsb_mmap, "")
      13             : {
      14             :   using namespace fas::testing;
      15             :   using namespace vset;
      16           1 :   memory::fsb_mmap<int> fsb_mmap;
      17           1 :   fsb_mmap.buffer().open("./fsb_mmap.bin");
      18           1 :   fsb_mmap.buffer().clear();
      19           1 :   fsb_mmap.buffer().close();
      20           1 :   t << nothing;
      21           1 : }
      22             : 
      23           3 : UNIT(fsb_filesync, "")
      24             : {
      25             :   using namespace fas::testing;
      26             :   using namespace vset;
      27           1 :   memory::fsb_filesync<int> fsb_filesync;
      28           1 :   fsb_filesync.buffer().open("./fsb_filesync.bin");
      29           1 :   fsb_filesync.buffer().clear();
      30           1 :   fsb_filesync.buffer().close();
      31           1 :   t << nothing;
      32           1 : }
      33             : 
      34             : UNIT(fsb_inmem, "")
      35             : {
      36             :   using namespace fas::testing;
      37             :   using namespace vset;
      38             :   memory::fsb_inmem<int> fsb_inmem;
      39             :   fsb_inmem.allocate(1);
      40             :   t << nothing;
      41             : }
      42             : 
      43             : 
      44             : 
      45           1 : BEGIN_SUITE(manager_suite, "")
      46             :   ADD_UNIT(fsb_mmap)
      47             :   ADD_UNIT(fsb_filesync)
      48           7 : END_SUITE(manager_suite)

Generated by: LCOV version 1.10