libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
cache.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include "core/cache.hpp"
Include dependency graph for cache.cpp:

Go to the source code of this file.

Classes

struct  my_factory
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

typedef boost::mpl::list< cache::ro< my_factory >, cache::ro< my_factory, cache::lru< my_factory::value_type >, cache::threading< my_factory::key_type, cache::lru< my_factory::value_type > >::multi< ppd::platform_api, ppd::sequential_mode >, cache::basic_statistics >, cache::ro< my_factory, cache::lru< my_factory::value_type >, cache::threading< my_factory::key_type, cache::lru< my_factory::value_type > >::multi< ppd::platform_api, ppd::heavyweight_threading >, cache::basic_statistics >> test_types
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (ctor, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (clear_empty, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (flush_empty, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (create_one_item, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (create_two_items, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (flush_small, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (flush_full, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (clear_small, T, test_types)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file cache.cpp.

Typedef Documentation

◆ test_types

typedef boost::mpl::list< cache::ro<my_factory>, cache::ro<my_factory, cache::lru<my_factory::value_type>, cache::threading<my_factory::key_type, cache::lru<my_factory::value_type> >::multi<ppd::platform_api, ppd::sequential_mode>, cache::basic_statistics>, cache::ro<my_factory, cache::lru<my_factory::value_type>, cache::threading<my_factory::key_type, cache::lru<my_factory::value_type> >::multi<ppd::platform_api, ppd::heavyweight_threading>, cache::basic_statistics>> test_types

Definition at line 40 of file cache.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( clear_empty  ,
,
test_types   
)

Definition at line 52 of file cache.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( clear_small  ,
,
test_types   
)

Definition at line 115 of file cache.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( create_one_item  ,
,
test_types   
)

Definition at line 70 of file cache.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( create_two_items  ,
,
test_types   
)

Definition at line 79 of file cache.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( ctor  ,
,
test_types   
)

Definition at line 44 of file cache.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( flush_empty  ,
,
test_types   
)

Definition at line 61 of file cache.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( flush_full  ,
,
test_types   
)

Definition at line 101 of file cache.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/8]

BOOST_AUTO_TEST_CASE_TEMPLATE ( flush_small  ,
,
test_types   
)

Definition at line 89 of file cache.cpp.