brave-browser#61187 Test best-practice violations in simple_hash_client_unittest.cc
State: closed (completed) · created · closed · updated · discovered via linked:brave/brave-core#42088
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/simple_hash_client_unittest.cc break test best practices documented in docs/best-practices. SimpleHashClientUnitTest.ParseNFTsFromSimpleHash (medium severity) L368 - Rule: TI-034: Use ASSERT for Preconditions That Subsequent Code Depends On - Problem: ParseNFTsFromSimpleHash checks result->second.size() with EXPECT_EQ and then indexes result->second[0] / [1] and dereferences the elements (lines 368, 428, 585, 634, 685, 767, 776,…
Timeline (7 of 11 events)
- 2026-11-05 15:20 Label added
QA/Noby netzenbot - 2026-11-05 15:20 Label added
release-notes/excludeby netzenbot - 2026-11-26 04:01 Referenced by brave-core#42088 by netzenbot
- 2026-11-26 18:21 Closed
completedby bbondy - 2026-11-26 18:29 Label added
OS/Androidby netzenbot - 2026-11-26 18:29 Label added
OS/Desktopby netzenbot - 2026-11-26 18:29 Label added
OS/iOSby netzenbot