Monero
Functions
test_tx_utils.cpp File Reference
#include "gtest/gtest.h"
#include <vector>
#include "common/util.h"
#include "cryptonote_basic/cryptonote_basic.h"
#include "cryptonote_basic/tx_extra.h"
#include "cryptonote_core/cryptonote_tx_utils.h"
Include dependency graph for test_tx_utils.cpp:

Functions

 TEST (parse_tx_extra, handles_empty_extra)
 
 TEST (parse_tx_extra, handles_padding_only_size_1)
 
 TEST (parse_tx_extra, handles_padding_only_size_2)
 
 TEST (parse_tx_extra, handles_padding_only_max_size)
 
 TEST (parse_tx_extra, handles_padding_only_exceed_max_size)
 
 TEST (parse_tx_extra, handles_invalid_padding_only)
 
 TEST (parse_tx_extra, handles_pub_key_only)
 
 TEST (parse_tx_extra, handles_extra_nonce_only)
 
 TEST (parse_tx_extra, handles_pub_key_and_padding)
 
 TEST (parse_and_validate_tx_extra, is_valid_tx_extra_parsed)
 
 TEST (parse_and_validate_tx_extra, fails_on_big_extra_nonce)
 
 TEST (parse_and_validate_tx_extra, fails_on_wrong_size_in_extra_nonce)
 
 TEST (validate_parse_amount_case, validate_parse_amount)
 
 TEST (sort_tx_extra, empty)
 
 TEST (sort_tx_extra, pubkey)
 
 TEST (sort_tx_extra, two_pubkeys)
 
 TEST (sort_tx_extra, keep_order)
 
 TEST (sort_tx_extra, switch_order)
 
 TEST (sort_tx_extra, invalid)
 
 TEST (sort_tx_extra, invalid_suffix_strict)
 
 TEST (sort_tx_extra, invalid_suffix_partial)
 
 TEST (remove_field_from_tx_extra, remove_first)
 
 TEST (remove_field_from_tx_extra, remove_last)
 
 TEST (remove_field_from_tx_extra, remove_middle)
 
 TEST (remove_field_from_tx_extra, invalid_varint)
 

Function Documentation

◆ TEST() [1/25]

TEST ( parse_tx_extra  ,
handles_empty_extra   
)

◆ TEST() [2/25]

TEST ( parse_tx_extra  ,
handles_padding_only_size_1   
)

◆ TEST() [3/25]

TEST ( parse_tx_extra  ,
handles_padding_only_size_2   
)

◆ TEST() [4/25]

TEST ( parse_tx_extra  ,
handles_padding_only_max_size   
)

◆ TEST() [5/25]

TEST ( parse_tx_extra  ,
handles_padding_only_exceed_max_size   
)

◆ TEST() [6/25]

TEST ( parse_tx_extra  ,
handles_invalid_padding_only   
)

◆ TEST() [7/25]

TEST ( parse_tx_extra  ,
handles_pub_key_only   
)

◆ TEST() [8/25]

TEST ( parse_tx_extra  ,
handles_extra_nonce_only   
)

◆ TEST() [9/25]

TEST ( parse_tx_extra  ,
handles_pub_key_and_padding   
)

◆ TEST() [10/25]

TEST ( parse_and_validate_tx_extra  ,
is_valid_tx_extra_parsed   
)

◆ TEST() [11/25]

TEST ( parse_and_validate_tx_extra  ,
fails_on_big_extra_nonce   
)

◆ TEST() [12/25]

TEST ( parse_and_validate_tx_extra  ,
fails_on_wrong_size_in_extra_nonce   
)

◆ TEST() [13/25]

TEST ( validate_parse_amount_case  ,
validate_parse_amount   
)

◆ TEST() [14/25]

TEST ( sort_tx_extra  ,
empty   
)

◆ TEST() [15/25]

TEST ( sort_tx_extra  ,
pubkey   
)

◆ TEST() [16/25]

TEST ( sort_tx_extra  ,
two_pubkeys   
)

◆ TEST() [17/25]

TEST ( sort_tx_extra  ,
keep_order   
)

◆ TEST() [18/25]

TEST ( sort_tx_extra  ,
switch_order   
)

◆ TEST() [19/25]

TEST ( sort_tx_extra  ,
invalid   
)

◆ TEST() [20/25]

TEST ( sort_tx_extra  ,
invalid_suffix_strict   
)

◆ TEST() [21/25]

TEST ( sort_tx_extra  ,
invalid_suffix_partial   
)

◆ TEST() [22/25]

TEST ( remove_field_from_tx_extra  ,
remove_first   
)

◆ TEST() [23/25]

TEST ( remove_field_from_tx_extra  ,
remove_last   
)

◆ TEST() [24/25]

TEST ( remove_field_from_tx_extra  ,
remove_middle   
)

◆ TEST() [25/25]

TEST ( remove_field_from_tx_extra  ,
invalid_varint   
)