tests: Fuzz operator!= of CService
This commit is contained in:
1 parent
c2c58f6f59
commit
81b58a3161
1 file changed
+3
@@ -120,4 +120,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
|||||||
const CNetAddr other_net_addr = ConsumeNetAddr(fuzzed_data_provider);
|
const CNetAddr other_net_addr = ConsumeNetAddr(fuzzed_data_provider);
|
||||||
(void)net_addr.GetReachabilityFrom(&other_net_addr);
|
(void)net_addr.GetReachabilityFrom(&other_net_addr);
|
||||||
(void)sub_net.Match(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));
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user