Bitcoin Core 28.99.0
P2P Digital Currency
Macros | Functions | Variables
unitester.cpp File Reference
#include <univalue.h>
#include <univalue/test/fail1.json.h>
#include <univalue/test/fail10.json.h>
#include <univalue/test/fail11.json.h>
#include <univalue/test/fail12.json.h>
#include <univalue/test/fail13.json.h>
#include <univalue/test/fail14.json.h>
#include <univalue/test/fail15.json.h>
#include <univalue/test/fail16.json.h>
#include <univalue/test/fail17.json.h>
#include <univalue/test/fail18.json.h>
#include <univalue/test/fail19.json.h>
#include <univalue/test/fail2.json.h>
#include <univalue/test/fail20.json.h>
#include <univalue/test/fail21.json.h>
#include <univalue/test/fail22.json.h>
#include <univalue/test/fail23.json.h>
#include <univalue/test/fail24.json.h>
#include <univalue/test/fail25.json.h>
#include <univalue/test/fail26.json.h>
#include <univalue/test/fail27.json.h>
#include <univalue/test/fail28.json.h>
#include <univalue/test/fail29.json.h>
#include <univalue/test/fail3.json.h>
#include <univalue/test/fail30.json.h>
#include <univalue/test/fail31.json.h>
#include <univalue/test/fail32.json.h>
#include <univalue/test/fail33.json.h>
#include <univalue/test/fail34.json.h>
#include <univalue/test/fail35.json.h>
#include <univalue/test/fail36.json.h>
#include <univalue/test/fail37.json.h>
#include <univalue/test/fail38.json.h>
#include <univalue/test/fail39.json.h>
#include <univalue/test/fail4.json.h>
#include <univalue/test/fail40.json.h>
#include <univalue/test/fail41.json.h>
#include <univalue/test/fail42.json.h>
#include <univalue/test/fail44.json.h>
#include <univalue/test/fail45.json.h>
#include <univalue/test/fail5.json.h>
#include <univalue/test/fail6.json.h>
#include <univalue/test/fail7.json.h>
#include <univalue/test/fail8.json.h>
#include <univalue/test/fail9.json.h>
#include <univalue/test/pass1.json.h>
#include <univalue/test/pass2.json.h>
#include <univalue/test/pass3.json.h>
#include <univalue/test/pass4.json.h>
#include <univalue/test/round1.json.h>
#include <univalue/test/round2.json.h>
#include <univalue/test/round3.json.h>
#include <univalue/test/round4.json.h>
#include <univalue/test/round5.json.h>
#include <univalue/test/round6.json.h>
#include <univalue/test/round7.json.h>
#include <array>
#include <cassert>
#include <cstdio>
#include <string>

Go to the source code of this file.

Macros

#define TEST_FILE(name)   {#name, json_tests::name}
 

Functions

static std::string rtrim (std::string s)
 
static void runtest (std::string filename, const std::string &jdata)
 
void unescape_unicode_test ()
 
void no_nul_test ()
 
int main (int argc, char *argv[])
 

Variables

constexpr std::array tests
 

Macro Definition Documentation

◆ TEST_FILE

#define TEST_FILE (   name)    {#name, json_tests::name}

Definition at line 99 of file unitester.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 188 of file unitester.cpp.

Here is the call graph for this function:

◆ no_nul_test()

void no_nul_test ( )

Definition at line 181 of file unitester.cpp.

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

◆ rtrim()

static std::string rtrim ( std::string  s)
static

Definition at line 69 of file unitester.cpp.

Here is the caller graph for this function:

◆ runtest()

static void runtest ( std::string  filename,
const std::string &  jdata 
)
static

Definition at line 75 of file unitester.cpp.

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

◆ unescape_unicode_test()

void unescape_unicode_test ( )

Definition at line 159 of file unitester.cpp.

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

Variable Documentation

◆ tests

constexpr std::array tests
inlineconstexpr

Definition at line 100 of file unitester.cpp.