#include <boost/optional/optional.hpp>
#include <string.h>
#include "gtest/gtest.h"
#include "misc_log_ex.h"
#include "wipeable_string.h"
#include "hex.h"
Go to the source code of this file.
|
| | TEST (wipeable_string, ctor) |
| |
| | TEST (wipeable_string, wipe) |
| |
| | TEST (wipeable_string, clear) |
| |
| | TEST (wipeable_string, push_back) |
| |
| | TEST (wipeable_string, append_char) |
| |
| | TEST (wipeable_string, append_string) |
| |
| | TEST (wipeable_string, empty) |
| |
| | TEST (wipeable_string, pop_back) |
| |
| | TEST (wipeable_string, equal) |
| |
| | TEST (wipeable_string, not_equal) |
| |
| | TEST (wipeable_string, trim) |
| |
| | TEST (wipeable_string, split) |
| |
| | TEST (wipeable_string, parse_hexstr) |
| |
| | TEST (wipeable_string, to_hex) |
| |
◆ TEST() [1/14]
| TEST |
( |
wipeable_string |
, |
|
|
append_char |
|
|
) |
| |
Definition at line 81 of file wipeable_string.cpp.
#define ASSERT_EQ(val1, val2)
#define ASSERT_TRUE(condition)
◆ TEST() [2/14]
| TEST |
( |
wipeable_string |
, |
|
|
append_string |
|
|
) |
| |
◆ TEST() [3/14]
| TEST |
( |
wipeable_string |
, |
|
|
clear |
|
|
) |
| |
◆ TEST() [4/14]
| TEST |
( |
wipeable_string |
, |
|
|
ctor |
|
|
) |
| |
◆ TEST() [5/14]
| TEST |
( |
wipeable_string |
, |
|
|
empty |
|
|
) |
| |
Definition at line 99 of file wipeable_string.cpp.
bool empty() const noexcept
#define ASSERT_FALSE(condition)
◆ TEST() [6/14]
| TEST |
( |
wipeable_string |
, |
|
|
equal |
|
|
) |
| |
◆ TEST() [7/14]
| TEST |
( |
wipeable_string |
, |
|
|
not_equal |
|
|
) |
| |
◆ TEST() [8/14]
| TEST |
( |
wipeable_string |
, |
|
|
parse_hexstr |
|
|
) |
| |
◆ TEST() [9/14]
| TEST |
( |
wipeable_string |
, |
|
|
pop_back |
|
|
) |
| |
◆ TEST() [10/14]
| TEST |
( |
wipeable_string |
, |
|
|
push_back |
|
|
) |
| |
◆ TEST() [11/14]
| TEST |
( |
wipeable_string |
, |
|
|
split |
|
|
) |
| |
Definition at line 174 of file wipeable_string.cpp.
179 ASSERT_TRUE(check_split(
"foo bar", {
"foo",
"bar"}));
180 ASSERT_TRUE(check_split(
"foo bar", {
"foo",
"bar"}));
181 ASSERT_TRUE(check_split(
"foo bar baz", {
"foo",
"bar",
"baz"}));
182 ASSERT_TRUE(check_split(
" foo bar baz ", {
"foo",
"bar",
"baz"}));
183 ASSERT_TRUE(check_split(
" foo bar baz", {
"foo",
"bar",
"baz"}));
184 ASSERT_TRUE(check_split(
"foo bar baz ", {
"foo",
"bar",
"baz"}));
◆ TEST() [12/14]
| TEST |
( |
wipeable_string |
, |
|
|
to_hex |
|
|
) |
| |
Definition at line 207 of file wipeable_string.cpp.
Non-owning sequence of data. Does not deep copy.
static epee::wipeable_string wipeable_string(const span< const std::uint8_t > src)
◆ TEST() [13/14]
| TEST |
( |
wipeable_string |
, |
|
|
trim |
|
|
) |
| |
◆ TEST() [14/14]
| TEST |
( |
wipeable_string |
, |
|
|
wipe |
|
|
) |
| |