Create net_peer_connection unit tests

for initial partial unit test coverage of these CConnman class methods:

- AddNode()
- ConnectNode()
- GetAddedNodeInfo()
- AlreadyConnectedToAddress()
- ThreadOpenAddedConnections()

and of the GetAddedNodeInfo() call in RPC addnode.
This commit is contained in:
Jon Atack
2023-10-26 15:54:18 -06:00
committed by Sergi Delgado Segura
parent 4b834f6499
commit 0420f99f42
2 changed files with 148 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ BITCOIN_TESTS =\
test/miniscript_tests.cpp \
test/minisketch_tests.cpp \
test/multisig_tests.cpp \
test/net_peer_connection_tests.cpp \
test/net_peer_eviction_tests.cpp \
test/net_tests.cpp \
test/netbase_tests.cpp \