Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
timeoffsets_tests.cpp File Reference
#include <node/timeoffsets.h>
#include <node/warnings.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
#include <chrono>
#include <vector>
Include dependency graph for timeoffsets_tests.cpp:

Go to the source code of this file.

Functions

static void AddMulti (TimeOffsets &offsets, const std::vector< std::chrono::seconds > &to_add)
 BOOST_AUTO_TEST_CASE (timeoffsets)
static bool IsWarningRaised (const std::vector< std::chrono::seconds > &check_offsets)
 BOOST_AUTO_TEST_CASE (timeoffsets_warning)

Function Documentation

◆ AddMulti()

void AddMulti ( TimeOffsets & offsets,
const std::vector< std::chrono::seconds > & to_add )
static

Definition at line 17 of file timeoffsets_tests.cpp.

Here is the caller graph for this function:

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( timeoffsets )

Definition at line 26 of file timeoffsets_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( timeoffsets_warning )

Definition at line 62 of file timeoffsets_tests.cpp.

Here is the call graph for this function:

◆ IsWarningRaised()

bool IsWarningRaised ( const std::vector< std::chrono::seconds > & check_offsets)
static

Definition at line 53 of file timeoffsets_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: