achow101 changed the topic of #bitcoin-core-dev to: Bitcoin Core development discussion and commit log | Feel free to watch, but please take commentary and usage questions to #bitcoin | Channel logs: http://www.erisian.com.au/bitcoin-core-dev/, http://gnusha.org/bitcoin-core-dev/ | Weekly Meeting Thursday @ 16:00 UTC | Meeting topics http://gnusha.org/bitcoin-core-dev/proposedmeetingtopics.txt
PaperSword has joined #bitcoin-core-dev
Cory8 has quit [Quit: Client closed]
Cory8 has joined #bitcoin-core-dev
Cory40 has joined #bitcoin-core-dev
<dzxzg> with the PIMPL pattern for e.g. PeerMan and PeerManImpl, what is the philosophy for unit testing functions that are internal to PeerManImpl and don't need to be exposed through PeerMan? For e.g. the stale tip eviction unit test we export the internal function: https://github.com/bitcoin/bitcoin/blob/d5ed4ba9d8627f1897322ce7eb5b34e08e4f73ac/src/net_processing.h#L141-L142
<dzxzg> Is the answer to only test "public" interfaces?
Cory8 has quit [Ping timeout: 250 seconds]
<dzxzg> It just seems like esp. for peermanagerimpl, the scope of internal functions grows from a one-off utility to something with lots of users with various subtle expectations; to make it concrete, in the case of PeerManagerImpl::BlockRequested, would anyone object to continuing the approach of exporting stuff into the interface class just for the purpose of being used in unit tests?
Cory59 has joined #bitcoin-core-dev
Cory40 has quit [Ping timeout: 250 seconds]
<dzxzg> maybe this is just an argument for breaking stuff out of PeerManImpl into smaller chunks
dzxzg has quit [Remote host closed the connection]
flooded has quit [Remote host closed the connection]
flooded has joined #bitcoin-core-dev
<sipa> dzxzg: could make them protected, or make the test function/class a friend
conman has quit [Quit: Konversation terminated!]
conman has joined #bitcoin-core-dev
Cory59 has quit [Quit: Client closed]
Cory59 has joined #bitcoin-core-dev
flooded has quit [Remote host closed the connection]
flooded has joined #bitcoin-core-dev
afiore has quit [Remote host closed the connection]
afiore has joined #bitcoin-core-dev
Cory59 has quit [Quit: Client closed]
Cory59 has joined #bitcoin-core-dev
flooded has quit [Remote host closed the connection]
flooded has joined #bitcoin-core-dev
saturday- has joined #bitcoin-core-dev
Saturday7 has quit [Ping timeout: 240 seconds]
cmirror has quit [Remote host closed the connection]
cmirror has joined #bitcoin-core-dev
bcdarc has joined #bitcoin-core-dev
memset has quit [Remote host closed the connection]
memset has joined #bitcoin-core-dev
Cory89 has quit [Quit: Client closed]
Cory89 has joined #bitcoin-core-dev
Sjors[m]1 has quit [Ping timeout: 260 seconds]
sr_gi[m]1 has quit [Ping timeout: 260 seconds]
pinheadmz[m] has quit [Ping timeout: 260 seconds]
BlueMattTest1 has quit [Ping timeout: 260 seconds]
Murch[m] has quit [Ping timeout: 260 seconds]
Murch[m] has joined #bitcoin-core-dev
BlueMattTest1 has joined #bitcoin-core-dev
Sjors[m]1 has joined #bitcoin-core-dev
sr_gi[m]1 has joined #bitcoin-core-dev
pinheadmz[m] has joined #bitcoin-core-dev
l0rinc has quit [Ping timeout: 240 seconds]
l0rinc has joined #bitcoin-core-dev
_andrewtoth_ has quit [Remote host closed the connection]
_andrewtoth_ has joined #bitcoin-core-dev
l0rinc has quit [Ping timeout: 244 seconds]
_andrewtoth_ has quit [Remote host closed the connection]
_andrewtoth_ has joined #bitcoin-core-dev
memset has quit [Remote host closed the connection]
memset has joined #bitcoin-core-dev
memset has quit [Remote host closed the connection]
memset has joined #bitcoin-core-dev
dzxzg has quit [Ping timeout: 240 seconds]
dzxzg has joined #bitcoin-core-dev