diff options
| author | practicalswift <[email protected]> | 2020-05-10 12:32:54 +0000 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2020-05-14 18:52:57 +0000 |
| commit | fb559c1170773360afb9d05daaccd57d18636ee9 (patch) | |
| tree | d4ff47882dc690c7d0928ca37a75c11b8b2abbbd /src/test/fuzz/string.cpp | |
| parent | tests: Fill fuzzing coverage gaps for functions in consensus/validation.h (diff) | |
| download | discoin-fb559c1170773360afb9d05daaccd57d18636ee9.tar.xz discoin-fb559c1170773360afb9d05daaccd57d18636ee9.zip | |
tests: Fill fuzzing coverage gaps for functions in util/translation.h
Diffstat (limited to 'src/test/fuzz/string.cpp')
| -rw-r--r-- | src/test/fuzz/string.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/fuzz/string.cpp b/src/test/fuzz/string.cpp index 49bee0e81..3c1f911f7 100644 --- a/src/test/fuzz/string.cpp +++ b/src/test/fuzz/string.cpp @@ -119,4 +119,10 @@ void test_one_input(const std::vector<uint8_t>& buffer) int64_t amount_out; (void)ParseFixedPoint(random_string_1, fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 1024), &amount_out); } + { + (void)Untranslated(random_string_1); + const bilingual_str bs1{random_string_1, random_string_2}; + const bilingual_str bs2{random_string_2, random_string_1}; + (void)(bs1 + bs2); + } } |