PIVX Core  5.6.99
P2P Digital Currency
Classes | Macros | Functions
util_tests.cpp File Reference
#include "util/system.h"
#include "clientversion.h"
#include "sync.h"
#include "utilstrencodings.h"
#include "util/string.h"
#include "utilmoneystr.h"
#include "test/test_pivx.h"
#include "util/vector.h"
#include <stdint.h>
#include <vector>
#include <sys/types.h>
#include <sys/wait.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for util_tests.cpp:

Go to the source code of this file.

Classes

struct  TestArgsManager
 

Macros

#define B   "check_prefix"
 
#define E   "check_postfix"
 

Functions

 BOOST_AUTO_TEST_CASE (util_criticalsection)
 
 BOOST_AUTO_TEST_CASE (util_ParseHex)
 
 BOOST_AUTO_TEST_CASE (util_HexStr)
 
 BOOST_AUTO_TEST_CASE (util_Join)
 
 BOOST_AUTO_TEST_CASE (util_FormatISO8601DateTime)
 
 BOOST_AUTO_TEST_CASE (util_FormatISO8601DateTimeForBackup)
 
 BOOST_AUTO_TEST_CASE (util_FormatISO8601Date)
 
 BOOST_AUTO_TEST_CASE (util_FormatISO8601Time)
 
 BOOST_AUTO_TEST_CASE (util_ParseParameters)
 
 BOOST_AUTO_TEST_CASE (util_GetBoolArg)
 
 BOOST_AUTO_TEST_CASE (util_GetBoolArgEdgeCases)
 
 BOOST_AUTO_TEST_CASE (util_ReadConfigStream)
 
 BOOST_AUTO_TEST_CASE (util_GetArg)
 
 BOOST_AUTO_TEST_CASE (util_GetChainName)
 
 BOOST_AUTO_TEST_CASE (util_FormatMoney)
 
 BOOST_AUTO_TEST_CASE (util_ParseMoney)
 
 BOOST_AUTO_TEST_CASE (util_IsHex)
 
 BOOST_AUTO_TEST_CASE (util_seed_insecure_rand)
 
 BOOST_AUTO_TEST_CASE (util_TimingResistantEqual)
 
 BOOST_AUTO_TEST_CASE (strprintf_numbers)
 
 BOOST_AUTO_TEST_CASE (gettime)
 
 BOOST_AUTO_TEST_CASE (util_time_GetTime)
 
 BOOST_AUTO_TEST_CASE (test_IsDigit)
 
 BOOST_AUTO_TEST_CASE (test_ParseInt32)
 
 BOOST_AUTO_TEST_CASE (test_ParseInt64)
 
 BOOST_AUTO_TEST_CASE (test_ParseDouble)
 
 BOOST_AUTO_TEST_CASE (test_FormatParagraph)
 
 BOOST_AUTO_TEST_CASE (test_FormatSubVersion)
 
 BOOST_AUTO_TEST_CASE (test_ParseFixedPoint)
 
 BOOST_AUTO_TEST_CASE (test_ToLower)
 
 BOOST_AUTO_TEST_CASE (test_ToUpper)
 
 BOOST_AUTO_TEST_CASE (test_Capitalize)
 
 BOOST_AUTO_TEST_CASE (test_validateURL)
 
 BOOST_AUTO_TEST_CASE (test_LockDirectory)
 
 BOOST_AUTO_TEST_CASE (test_DirIsWritable)
 
 BOOST_AUTO_TEST_CASE (test_tracked_vector)
 

Macro Definition Documentation

◆ B

#define B   "check_prefix"

Definition at line 688 of file util_tests.cpp.

◆ E

#define E   "check_postfix"

Definition at line 689 of file util_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/36]

BOOST_AUTO_TEST_CASE ( gettime  )

Definition at line 716 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/36]

BOOST_AUTO_TEST_CASE ( strprintf_numbers  )

Definition at line 690 of file util_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/36]

BOOST_AUTO_TEST_CASE ( test_Capitalize  )

Definition at line 965 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/36]

BOOST_AUTO_TEST_CASE ( test_DirIsWritable  )

Definition at line 1130 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/36]

BOOST_AUTO_TEST_CASE ( test_FormatParagraph  )

Definition at line 844 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/36]

BOOST_AUTO_TEST_CASE ( test_FormatSubVersion  )

Definition at line 856 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/36]

BOOST_AUTO_TEST_CASE ( test_IsDigit  )

Definition at line 742 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/36]

BOOST_AUTO_TEST_CASE ( test_LockDirectory  )

Definition at line 1042 of file util_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/36]

BOOST_AUTO_TEST_CASE ( test_ParseDouble  )

Definition at line 816 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/36]

BOOST_AUTO_TEST_CASE ( test_ParseFixedPoint  )

Definition at line 868 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/36]

BOOST_AUTO_TEST_CASE ( test_ParseInt32  )

Definition at line 757 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/36]

BOOST_AUTO_TEST_CASE ( test_ParseInt64  )

Definition at line 786 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/36]

BOOST_AUTO_TEST_CASE ( test_ToLower  )

Definition at line 933 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/36]

BOOST_AUTO_TEST_CASE ( test_ToUpper  )

Definition at line 955 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [15/36]

BOOST_AUTO_TEST_CASE ( test_tracked_vector  )

Definition at line 1174 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [16/36]

BOOST_AUTO_TEST_CASE ( test_validateURL  )

Definition at line 972 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [17/36]

BOOST_AUTO_TEST_CASE ( util_criticalsection  )

Definition at line 27 of file util_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [18/36]

BOOST_AUTO_TEST_CASE ( util_FormatISO8601Date  )

Definition at line 119 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [19/36]

BOOST_AUTO_TEST_CASE ( util_FormatISO8601DateTime  )

Definition at line 109 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [20/36]

BOOST_AUTO_TEST_CASE ( util_FormatISO8601DateTimeForBackup  )

Definition at line 114 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [21/36]

BOOST_AUTO_TEST_CASE ( util_FormatISO8601Time  )

Definition at line 124 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [22/36]

BOOST_AUTO_TEST_CASE ( util_FormatMoney  )

Definition at line 550 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [23/36]

BOOST_AUTO_TEST_CASE ( util_GetArg  )

Definition at line 439 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [24/36]

BOOST_AUTO_TEST_CASE ( util_GetBoolArg  )

Definition at line 178 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [25/36]

BOOST_AUTO_TEST_CASE ( util_GetBoolArgEdgeCases  )

Definition at line 209 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [26/36]

BOOST_AUTO_TEST_CASE ( util_GetChainName  )

Definition at line 477 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [27/36]

BOOST_AUTO_TEST_CASE ( util_HexStr  )

Definition at line 71 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [28/36]

BOOST_AUTO_TEST_CASE ( util_IsHex  )

Definition at line 630 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [29/36]

BOOST_AUTO_TEST_CASE ( util_Join  )

Definition at line 95 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [30/36]

BOOST_AUTO_TEST_CASE ( util_ParseHex  )

Definition at line 54 of file util_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [31/36]

BOOST_AUTO_TEST_CASE ( util_ParseMoney  )

Definition at line 577 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [32/36]

BOOST_AUTO_TEST_CASE ( util_ParseParameters  )

Definition at line 150 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [33/36]

BOOST_AUTO_TEST_CASE ( util_ReadConfigStream  )

Definition at line 258 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [34/36]

BOOST_AUTO_TEST_CASE ( util_seed_insecure_rand  )

Definition at line 645 of file util_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [35/36]

BOOST_AUTO_TEST_CASE ( util_time_GetTime  )

Definition at line 721 of file util_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [36/36]

BOOST_AUTO_TEST_CASE ( util_TimingResistantEqual  )

Definition at line 675 of file util_tests.cpp.

Here is the call graph for this function: