Bitcoin Core 30.99.0
P2P Digital Currency
Functions
streams_tests.cpp File Reference
#include <flatfile.h>
#include <node/blockstorage.h>
#include <streams.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <util/fs.h>
#include <util/obfuscation.h>
#include <util/strencodings.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for streams_tests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (xor_random_chunks)
 
 BOOST_AUTO_TEST_CASE (obfuscation_hexkey)
 
 BOOST_AUTO_TEST_CASE (obfuscation_serialize)
 
 BOOST_AUTO_TEST_CASE (obfuscation_empty)
 
 BOOST_AUTO_TEST_CASE (xor_file)
 
 BOOST_AUTO_TEST_CASE (streams_vector_writer)
 
 BOOST_AUTO_TEST_CASE (streams_vector_reader)
 
 BOOST_AUTO_TEST_CASE (streams_vector_reader_rvalue)
 
 BOOST_AUTO_TEST_CASE (bitstream_reader_writer)
 
 BOOST_AUTO_TEST_CASE (streams_serializedata_xor)
 
 BOOST_AUTO_TEST_CASE (streams_buffered_file)
 
 BOOST_AUTO_TEST_CASE (streams_buffered_file_skip)
 
 BOOST_AUTO_TEST_CASE (streams_buffered_file_rand)
 
 BOOST_AUTO_TEST_CASE (buffered_reader_matches_autofile_random_content)
 
 BOOST_AUTO_TEST_CASE (buffered_writer_matches_autofile_random_content)
 
 BOOST_AUTO_TEST_CASE (buffered_writer_reader)
 
 BOOST_AUTO_TEST_CASE (streams_hashed)
 
 BOOST_AUTO_TEST_CASE (size_preserves_position)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/18]

BOOST_AUTO_TEST_CASE ( bitstream_reader_writer  )

Definition at line 266 of file streams_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/18]

BOOST_AUTO_TEST_CASE ( buffered_reader_matches_autofile_random_content  )

Definition at line 628 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/18]

BOOST_AUTO_TEST_CASE ( buffered_writer_matches_autofile_random_content  )

Definition at line 682 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/18]

BOOST_AUTO_TEST_CASE ( buffered_writer_reader  )

Definition at line 743 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/18]

BOOST_AUTO_TEST_CASE ( obfuscation_empty  )

Definition at line 81 of file streams_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/18]

BOOST_AUTO_TEST_CASE ( obfuscation_hexkey  )

Definition at line 51 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/18]

BOOST_AUTO_TEST_CASE ( obfuscation_serialize  )

Definition at line 59 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/18]

BOOST_AUTO_TEST_CASE ( size_preserves_position  )

Definition at line 789 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/18]

BOOST_AUTO_TEST_CASE ( streams_buffered_file  )

Definition at line 327 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/18]

BOOST_AUTO_TEST_CASE ( streams_buffered_file_rand  )

Definition at line 506 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/18]

BOOST_AUTO_TEST_CASE ( streams_buffered_file_skip  )

Definition at line 457 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/18]

BOOST_AUTO_TEST_CASE ( streams_hashed  )

Definition at line 775 of file streams_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [13/18]

BOOST_AUTO_TEST_CASE ( streams_serializedata_xor  )

Definition at line 301 of file streams_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [14/18]

BOOST_AUTO_TEST_CASE ( streams_vector_reader  )

Definition at line 210 of file streams_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [15/18]

BOOST_AUTO_TEST_CASE ( streams_vector_reader_rvalue  )

Definition at line 255 of file streams_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [16/18]

BOOST_AUTO_TEST_CASE ( streams_vector_writer  )

Definition at line 152 of file streams_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [17/18]

BOOST_AUTO_TEST_CASE ( xor_file  )

Definition at line 90 of file streams_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [18/18]

BOOST_AUTO_TEST_CASE ( xor_random_chunks  )

Definition at line 23 of file streams_tests.cpp.