XRPLF / rippled

Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger protocol in C++
https://xrpl.org
ISC License
4.48k stars 1.44k forks source link

chore: replaced friend for unit-test with mock #5054

Open vlntb opened 4 days ago

vlntb commented 4 days ago

Improving unit-test that have to access class internals

Context of Change

Replacing friend relationship between tested class (STLedgerEntry) and unit-test (Invariants_test) in favour of using mock. The change has no functional impact.

Type of Change

API Impact