rippled
Public Member Functions | Static Private Member Functions | List of all members
ripple::RPC::WalletPropose_test Class Reference
Inheritance diagram for ripple::RPC::WalletPropose_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::RPC::WalletPropose_test:
Collaboration graph
[legend]

Public Member Functions

void testRandomWallet (std::optional< std::string > const &keyType)
 
Json::Value testSecretWallet (Json::Value const &params, key_strings const &s)
 
void testSeed (std::optional< std::string > const &keyType, key_strings const &strings)
 
void testSeedHex (std::optional< std::string > const &keyType, key_strings const &strings)
 
void testLegacyPassphrase (char const *value, std::optional< std::string > const &keyType, key_strings const &strings)
 
void testLegacyPassphrase (std::optional< std::string > const &keyType, key_strings const &strings)
 
void testKeyType (std::optional< std::string > const &keyType, key_strings const &strings)
 
void testBadInput ()
 
void testKeypairForSignature (std::optional< std::string > keyType, key_strings const &strings)
 
void testKeypairForSignatureErrors ()
 
void testRippleLibEd25519 ()
 
void run () override
 
template<class S , class T >
bool expectEquals (S actual, T expected, std::string const &message="")
 
template<class S , class T >
bool expectNotEquals (S actual, T expected, std::string const &message="")
 
template<class Collection >
bool expectCollectionEquals (Collection const &actual, Collection const &expected, std::string const &message="")
 
template<class Exception , class Functor >
bool expectException (Functor f, std::string const &message="")
 
template<class Functor >
bool expectException (Functor f, std::string const &message="")
 

Static Private Member Functions

static std::string addPrefix (std::string const &message)
 

Detailed Description

Definition at line 96 of file KeyGeneration_test.cpp.

Member Function Documentation

◆ testRandomWallet()

void ripple::RPC::WalletPropose_test::testRandomWallet ( std::optional< std::string > const &  keyType)

Definition at line 100 of file KeyGeneration_test.cpp.

◆ testSecretWallet()

Json::Value ripple::RPC::WalletPropose_test::testSecretWallet ( Json::Value const &  params,
key_strings const &  s 
)

Definition at line 130 of file KeyGeneration_test.cpp.

◆ testSeed()

void ripple::RPC::WalletPropose_test::testSeed ( std::optional< std::string > const &  keyType,
key_strings const &  strings 
)

Definition at line 148 of file KeyGeneration_test.cpp.

◆ testSeedHex()

void ripple::RPC::WalletPropose_test::testSeedHex ( std::optional< std::string > const &  keyType,
key_strings const &  strings 
)

Definition at line 164 of file KeyGeneration_test.cpp.

◆ testLegacyPassphrase() [1/2]

void ripple::RPC::WalletPropose_test::testLegacyPassphrase ( char const *  value,
std::optional< std::string > const &  keyType,
key_strings const &  strings 
)

Definition at line 180 of file KeyGeneration_test.cpp.

◆ testLegacyPassphrase() [2/2]

void ripple::RPC::WalletPropose_test::testLegacyPassphrase ( std::optional< std::string > const &  keyType,
key_strings const &  strings 
)

Definition at line 198 of file KeyGeneration_test.cpp.

◆ testKeyType()

void ripple::RPC::WalletPropose_test::testKeyType ( std::optional< std::string > const &  keyType,
key_strings const &  strings 
)

Definition at line 211 of file KeyGeneration_test.cpp.

◆ testBadInput()

void ripple::RPC::WalletPropose_test::testBadInput ( )

Definition at line 233 of file KeyGeneration_test.cpp.

◆ testKeypairForSignature()

void ripple::RPC::WalletPropose_test::testKeypairForSignature ( std::optional< std::string keyType,
key_strings const &  strings 
)

Definition at line 320 of file KeyGeneration_test.cpp.

◆ testKeypairForSignatureErrors()

void ripple::RPC::WalletPropose_test::testKeypairForSignatureErrors ( )

Definition at line 410 of file KeyGeneration_test.cpp.

◆ testRippleLibEd25519()

void ripple::RPC::WalletPropose_test::testRippleLibEd25519 ( )

Definition at line 739 of file KeyGeneration_test.cpp.

◆ run()

void ripple::RPC::WalletPropose_test::run ( )
override

Definition at line 853 of file KeyGeneration_test.cpp.

◆ expectEquals()

template<class S , class T >
bool ripple::TestSuite::expectEquals ( actual,
expected,
std::string const &  message = "" 
)
inherited

Definition at line 33 of file TestSuite.h.

◆ expectNotEquals()

template<class S , class T >
bool ripple::TestSuite::expectNotEquals ( actual,
expected,
std::string const &  message = "" 
)
inherited

Definition at line 51 of file TestSuite.h.

◆ expectCollectionEquals()

template<class Collection >
bool ripple::TestSuite::expectCollectionEquals ( Collection const &  actual,
Collection const &  expected,
std::string const &  message = "" 
)
inherited

Definition at line 69 of file TestSuite.h.

◆ expectException() [1/2]

template<class Exception , class Functor >
bool ripple::TestSuite::expectException ( Functor  f,
std::string const &  message = "" 
)
inherited

Definition at line 99 of file TestSuite.h.

◆ expectException() [2/2]

template<class Functor >
bool ripple::TestSuite::expectException ( Functor  f,
std::string const &  message = "" 
)
inherited

Definition at line 115 of file TestSuite.h.

◆ addPrefix()

static std::string ripple::TestSuite::addPrefix ( std::string const &  message)
staticprivateinherited

Definition at line 131 of file TestSuite.h.