|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Phase 17 safety/compression/async/delta tests for ca-checkpoint.H.
More...
#include <atomic>#include <chrono>#include <cstdint>#include <thread>#include <cstdlib>#include <cstring>#include <filesystem>#include <fstream>#include <random>#include <string>#include <vector>#include <sys/wait.h>#include <unistd.h>#include <gtest/gtest.h>#include <ca-checkpoint-compress.H>#include <ca-checkpoint.H>#include <tpl_ca_engine.H>#include <tpl_ca_lattice.H>#include <tpl_ca_neighborhood.H>#include <tpl_ca_rule.H>#include <tpl_ca_storage.H>#include <tpl_ca_stochastic_rules.H>Go to the source code of this file.
Functions | |
| TEST (CACheckpointSafety, CompressedRoundTripMatchesRaw) | |
| TEST (CACheckpointSafety, CrashInjectionPreservesOriginalContents) | |
| TEST (CACheckpointSafety, CrashInjectionDoesNotPublishNewFile) | |
| TEST (CACheckpointSafety, AsyncWriterPersistsAllSubmitted) | |
| TEST (CACheckpointSafety, AsyncWriterDropOldestActuallyDrops) | |
| TEST (CACheckpointSafety, SparseCompressionRatioExceedsFourX) | |
| TEST (CACheckpointSafety, V1ReaderAcceptsLegacyFile) | |
| TEST (CACheckpointSafety, DeltaRoundTripMatchesFullSnapshot) | |
| TEST (CACheckpointSafety, InspectRejectsCellCountExtentMismatch) | |
| TEST (CACheckpointSafety, LoadRejectsOversizedPayloadWithoutHugeAllocation) | |
Phase 17 safety/compression/async/delta tests for ca-checkpoint.H.
Coverage:
flush().Queue_Policy::Drop_Oldest actually drops entries.Definition in file ca_checkpoint_safety_test.cc.
| TEST | ( | CACheckpointSafety | , |
| AsyncWriterDropOldestActuallyDrops | |||
| ) |
Definition at line 344 of file ca_checkpoint_safety_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), k, Aleph::CA::make_game_of_life_rule(), and N.
| TEST | ( | CACheckpointSafety | , |
| AsyncWriterPersistsAllSubmitted | |||
| ) |
Definition at line 308 of file ca_checkpoint_safety_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), k, Aleph::CA::make_game_of_life_rule(), and N.
| TEST | ( | CACheckpointSafety | , |
| CompressedRoundTripMatchesRaw | |||
| ) |
Definition at line 169 of file ca_checkpoint_safety_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Checkpoint_Options::compress, Aleph::CA::ca_checkpoint_flags::compressed, Aleph::CA::inspect_checkpoint(), Aleph::CA::load_checkpoint_into(), Aleph::CA::make_game_of_life_rule(), and Aleph::CA::save_checkpoint().
| TEST | ( | CACheckpointSafety | , |
| CrashInjectionDoesNotPublishNewFile | |||
| ) |
Definition at line 273 of file ca_checkpoint_safety_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and out.
| TEST | ( | CACheckpointSafety | , |
| CrashInjectionPreservesOriginalContents | |||
| ) |
Definition at line 216 of file ca_checkpoint_safety_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), and out.
| TEST | ( | CACheckpointSafety | , |
| DeltaRoundTripMatchesFullSnapshot | |||
| ) |
Definition at line 499 of file ca_checkpoint_safety_test.cc.
References Aleph::CA::apply_delta_checkpoint(), Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Checkpoint_Options::compress, Aleph::CA::ca_checkpoint_flags::delta, Aleph::CA::inspect_checkpoint(), Aleph::CA::load_checkpoint_into(), Aleph::CA::make_game_of_life_rule(), Aleph::CA::save_checkpoint(), Aleph::CA::save_delta_checkpoint(), and Aleph::CA::ca_checkpoint_detail::snapshot_frame_bytes().
| TEST | ( | CACheckpointSafety | , |
| InspectRejectsCellCountExtentMismatch | |||
| ) |
Definition at line 577 of file ca_checkpoint_safety_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::inspect_checkpoint(), Aleph::CA::make_game_of_life_rule(), and Aleph::CA::save_checkpoint().
| TEST | ( | CACheckpointSafety | , |
| LoadRejectsOversizedPayloadWithoutHugeAllocation | |||
| ) |
Definition at line 594 of file ca_checkpoint_safety_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::load_checkpoint_into(), Aleph::CA::make_game_of_life_rule(), and Aleph::CA::save_checkpoint().
| TEST | ( | CACheckpointSafety | , |
| SparseCompressionRatioExceedsFourX | |||
| ) |
Definition at line 378 of file ca_checkpoint_safety_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Checkpoint_Options::compress, Aleph::CA::make_game_of_life_rule(), rng, and Aleph::CA::save_checkpoint().
| TEST | ( | CACheckpointSafety | , |
| V1ReaderAcceptsLegacyFile | |||
| ) |
Definition at line 463 of file ca_checkpoint_safety_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), engine, h, Aleph::CA::inspect_checkpoint(), Aleph::CA::load_checkpoint_into(), and Aleph::CA::make_game_of_life_rule().