brave-browser#61183 Test best-practice violations in polkadot_tx_meta_unittest.cc
State: closed (completed) · created · closed · updated · discovered via linked:brave/brave-core#41583
tests QA/No release-notes/exclude feature/web3/wallet OS/Android OS/Desktop OS/iOS tests/test-quality tests/best-practice-violation
Unit tests in components/brave_wallet/browser/polkadot/polkadot_tx_meta_unittest.cc break test best practices documented in docs/best-practices. PolkadotTxMeta.ToTransactionPtr (medium severity) L138 - Rule: TI-034: Use ASSERT for Preconditions That Subsequent Code Depends On - Problem: In PolkadotTxMeta.ToTransactionPtr, EXPECT_TRUE(ti->tx_data_union->is_polkadot_tx_data()) is followed by get_polkadot_tx_data() and dereferences of the result. If the union holds a different…
Timeline (8 of 12 events)
- 2026-11-05 15:19 Label added
QA/Noby netzenbot - 2026-11-05 15:19 Label added
release-notes/excludeby netzenbot - 2026-11-12 13:08 Referenced by brave-core#41583 by netzenbot
- 2026-11-13 03:52 Closed
completedby brian-brave - 2026-11-13 03:53 Milestone set
1.102.x - Nightlyby brave-builds - 2026-11-16 12:50 Label added
OS/Androidby netzenbot - 2026-11-16 12:50 Label added
OS/Desktopby netzenbot - 2026-11-16 12:50 Label added
OS/iOSby netzenbot