mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
tests: Fuzz operator!= of CService
This commit is contained in:
parent
c2c58f6f59
commit
81b58a3161
1 changed files with 3 additions and 0 deletions
|
|
@ -120,4 +120,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
|||
const CNetAddr other_net_addr = ConsumeNetAddr(fuzzed_data_provider);
|
||||
(void)net_addr.GetReachabilityFrom(&other_net_addr);
|
||||
(void)sub_net.Match(other_net_addr);
|
||||
|
||||
const CService other_service{net_addr, fuzzed_data_provider.ConsumeIntegral<uint16_t>()};
|
||||
assert((service == other_service) != (service != other_service));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue