diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-03-10 12:07:11 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-03-11 12:51:26 +0000 |
commit | 81b58a3161c5d558dadd2b7093e4fc9687844cd9 (patch) | |
tree | 7dfbf0100aaf5f5f05ad3c53d80d5da8b8be35b9 /src/test | |
parent | c2c58f6f59d38e3d60fe0a8fa45b2a45deee84cc (diff) |
tests: Fuzz operator!= of CService
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/fuzz/netaddress.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/fuzz/netaddress.cpp b/src/test/fuzz/netaddress.cpp index 7d87ebc214..d14fc1eb6c 100644 --- a/src/test/fuzz/netaddress.cpp +++ b/src/test/fuzz/netaddress.cpp @@ -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)); } |