Project
Loading...
Searching...
No Matches
test_Failover.cxx File Reference
#include "FailoverByteSource.h"
#include "AODNative/Errors.h"
#include <catch_amalgamated.hpp>
#include <atomic>
#include <map>
#include <thread>

Go to the source code of this file.

Functions

 TEST_CASE ("FailoverByteSource reads the first replica")
 
 TEST_CASE ("FailoverByteSource skips replicas which do not open")
 
 TEST_CASE ("FailoverByteSource throws when no replica opens")
 
 TEST_CASE ("FailoverByteSource retries a transient read error on the same replica")
 
 TEST_CASE ("FailoverByteSource moves to the next replica after the retries")
 
 TEST_CASE ("FailoverByteSource does not use a replica of a different size")
 
 TEST_CASE ("FailoverByteSource throws when every replica fails")
 
 TEST_CASE ("FailoverByteSource counts the bytes of retired replicas")
 
 TEST_CASE ("FailoverByteSource with concurrent readers")
 

Function Documentation

◆ TEST_CASE() [1/9]

TEST_CASE ( "FailoverByteSource counts the bytes of retired replicas"  )

Definition at line 195 of file test_Failover.cxx.

◆ TEST_CASE() [2/9]

TEST_CASE ( "FailoverByteSource does not use a replica of a different size"  )

Definition at line 167 of file test_Failover.cxx.

◆ TEST_CASE() [3/9]

TEST_CASE ( "FailoverByteSource moves to the next replica after the retries"  )

Definition at line 152 of file test_Failover.cxx.

◆ TEST_CASE() [4/9]

TEST_CASE ( "FailoverByteSource reads the first replica"  )

Definition at line 105 of file test_Failover.cxx.

◆ TEST_CASE() [5/9]

TEST_CASE ( "FailoverByteSource retries a transient read error on the same replica"  )

Definition at line 138 of file test_Failover.cxx.

◆ TEST_CASE() [6/9]

TEST_CASE ( "FailoverByteSource skips replicas which do not open"  )

Definition at line 119 of file test_Failover.cxx.

◆ TEST_CASE() [7/9]

TEST_CASE ( "FailoverByteSource throws when every replica fails"  )

Definition at line 178 of file test_Failover.cxx.

◆ TEST_CASE() [8/9]

TEST_CASE ( "FailoverByteSource throws when no replica opens"  )

Definition at line 130 of file test_Failover.cxx.

◆ TEST_CASE() [9/9]

TEST_CASE ( "FailoverByteSource with concurrent readers"  )

Definition at line 208 of file test_Failover.cxx.