Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
moved_from_engines_test.cc File Reference

The moved-from tests (moved_from.H) of the cellular automata storages, lattices and engines, of the lock guards of concurrency_utils.H and of the CSV reader. More...

#include "moved_from.H"
#include <ca-observer.H>
#include <ca-streaming-storage.H>
#include <concurrency_utils.H>
#include <parse-csv.H>
#include <thread_pool.H>
#include <tpl_ca_async_engine.H>
#include <tpl_ca_bit_storage.H>
#include <tpl_ca_engine.H>
#include <tpl_ca_ghost_lattice.H>
#include <tpl_ca_graph_automaton.H>
#include <tpl_ca_hashlife.H>
#include <tpl_ca_lattice.H>
#include <tpl_ca_multi_field_engine.H>
#include <tpl_ca_multi_field_lattice.H>
#include <tpl_ca_multi_field_rule.H>
#include <tpl_ca_neighborhood.H>
#include <tpl_ca_parallel_engine.H>
#include <tpl_ca_rule.H>
#include <tpl_ca_storage.H>
#include <array>
#include <cstdint>
#include <filesystem>
#include <fstream>
#include <memory>
#include <sstream>
#include <string>
#include <system_error>
#include <thread>
#include <tuple>
#include <type_traits>
#include <utility>
#include <unistd.h>
Include dependency graph for moved_from_engines_test.cc:

Go to the source code of this file.

Classes

struct  Moved_From_Case< Dense_Cell_Storage< int, 2 > >
 
struct  Moved_From_Case< Bit_Cell_Storage< 2 > >
 
struct  Moved_From_Case< Ghost_Grid >
 
struct  Moved_From_Case< Field_Grid >
 
struct  Moved_From_Case< Graph_Lattice< int > >
 
struct  Moved_From_Case< Life >
 
struct  Moved_From_Case< Async_Life >
 
struct  Moved_From_Case< Parallel_Life >
 
struct  Moved_From_Case< Field_Life >
 
struct  Moved_From_Case< Graph_Life >
 
struct  Moved_From_Case< Hashlife_Engine >
 
struct  Moved_From_Case< Locked >
 
struct  Moved_From_Case< Const_Locked >
 
struct  Moved_From_Case< Read_Locked >
 
struct  Moved_From_Case< Write_Locked >
 
struct  Moved_From_Case< CsvReader >
 
struct  Moved_From_Case< Random_Life >
 
struct  Moved_From_Case< Tiles >
 
struct  Moved_From_Case< Density >
 
struct  Moved_From_Case< Entropy >
 

Typedefs

using Engines = ::testing::Types< Dense_Cell_Storage< int, 2 >, Bit_Cell_Storage< 2 >, Ghost_Grid, Field_Grid, Graph_Lattice< int >, Life, Async_Life, Parallel_Life, Field_Life, Graph_Life, Hashlife_Engine, Locked, Const_Locked, Read_Locked, Write_Locked, CsvReader, Random_Life, Tiles, Density, Entropy >
 

Functions

 INSTANTIATE_TYPED_TEST_SUITE_P (Engines, MovedFrom, Engines)
 
template<class Engine >
void expect_exchanged_steps ()
 
 TEST (MovedFromEngines, AnAssignmentExchangesTheSteps)
 
 TEST (MovedFromEngines, AnEmptyRandomEngineSteps)
 
 TEST (MovedFromTileCache, TheMovedFromCacheTouchesNoFile)
 
 TEST (MovedFromEngines, TheHooksGoWithTheSimulation)
 
 TEST (MovedFromGuards, TheLockGoesWithTheGuard)
 
 TEST (MovedFromCsvReader, TheFileGoesWithTheReader)
 
 TEST (MovedFromCsvReader, AReaderOfAStreamGivesTheStream)
 

Detailed Description

The moved-from tests (moved_from.H) of the cellular automata storages, lattices and engines, of the lock guards of concurrency_utils.H and of the CSV reader.

Definition in file moved_from_engines_test.cc.

Typedef Documentation

◆ Engines

using Engines = ::testing::Types<Dense_Cell_Storage<int, 2>, Bit_Cell_Storage<2>, Ghost_Grid, Field_Grid, Graph_Lattice<int>, Life, Async_Life, Parallel_Life, Field_Life, Graph_Life, Hashlife_Engine, Locked, Const_Locked, Read_Locked, Write_Locked, CsvReader, Random_Life, Tiles, Density, Entropy>

Definition at line 855 of file moved_from_engines_test.cc.

Function Documentation

◆ expect_exchanged_steps()

template<class Engine >
void expect_exchanged_steps ( )

Definition at line 865 of file moved_from_engines_test.cc.

◆ INSTANTIATE_TYPED_TEST_SUITE_P()

INSTANTIATE_TYPED_TEST_SUITE_P ( Engines  ,
MovedFrom  ,
Engines   
)

◆ TEST() [1/7]

TEST ( MovedFromCsvReader  ,
AReaderOfAStreamGivesTheStream   
)

◆ TEST() [2/7]

TEST ( MovedFromCsvReader  ,
TheFileGoesWithTheReader   
)

◆ TEST() [3/7]

TEST ( MovedFromEngines  ,
AnAssignmentExchangesTheSteps   
)

Definition at line 877 of file moved_from_engines_test.cc.

◆ TEST() [4/7]

TEST ( MovedFromEngines  ,
AnEmptyRandomEngineSteps   
)

Definition at line 889 of file moved_from_engines_test.cc.

References Aleph::CA::make_game_of_life_rule().

◆ TEST() [5/7]

TEST ( MovedFromEngines  ,
TheHooksGoWithTheSimulation   
)

Definition at line 913 of file moved_from_engines_test.cc.

References Aleph::CA::make_game_of_life_rule().

◆ TEST() [6/7]

TEST ( MovedFromGuards  ,
TheLockGoesWithTheGuard   
)

◆ TEST() [7/7]

TEST ( MovedFromTileCache  ,
TheMovedFromCacheTouchesNoFile   
)

Definition at line 900 of file moved_from_engines_test.cc.