|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
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>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) | |
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.
| 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.
| void expect_exchanged_steps | ( | ) |
Definition at line 865 of file moved_from_engines_test.cc.
| TEST | ( | MovedFromCsvReader | , |
| AReaderOfAStreamGivesTheStream | |||
| ) |
Definition at line 973 of file moved_from_engines_test.cc.
References Aleph::CsvReader::has_next(), Aleph::CsvReader::next(), Aleph::CsvReader::read_header(), Aleph::CsvReader::reset(), rows, and Aleph::Array< T >::size().
| TEST | ( | MovedFromCsvReader | , |
| TheFileGoesWithTheReader | |||
| ) |
Definition at line 955 of file moved_from_engines_test.cc.
References Aleph::CsvReader::has_next(), Aleph::CsvReader::next(), Aleph::CsvReader::read_header(), rows, Aleph::Array< T >::size(), and Aleph::CA::write_csv().
| TEST | ( | MovedFromEngines | , |
| AnAssignmentExchangesTheSteps | |||
| ) |
Definition at line 877 of file moved_from_engines_test.cc.
| TEST | ( | MovedFromEngines | , |
| AnEmptyRandomEngineSteps | |||
| ) |
Definition at line 889 of file moved_from_engines_test.cc.
References Aleph::CA::make_game_of_life_rule().
| TEST | ( | MovedFromEngines | , |
| TheHooksGoWithTheSimulation | |||
| ) |
Definition at line 913 of file moved_from_engines_test.cc.
References Aleph::CA::make_game_of_life_rule().
| TEST | ( | MovedFromGuards | , |
| TheLockGoesWithTheGuard | |||
| ) |
Definition at line 928 of file moved_from_engines_test.cc.
References Aleph::Synchronized< T, Mutex >::lock().
| TEST | ( | MovedFromTileCache | , |
| TheMovedFromCacheTouchesNoFile | |||
| ) |
Definition at line 900 of file moved_from_engines_test.cc.