mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
tests: Fill fuzzing coverage gaps for functions in util/translation.h
This commit is contained in:
parent
b74f3d6c45
commit
fb559c1170
2 changed files with 34 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue