brave-browser#61091 Test best-practice violations in yt_util_unittest.cc
State: closed (completed) · created · closed · updated · discovered via linked:brave/brave-core#41668
tests QA/No release-notes/exclude OS/Android OS/Desktop OS/iOS tests/test-quality tests/best-practice-violation
Unit tests in components/ai_chat/core/common/yt_util_unittest.cc break test best practices documented in docs/best-practices. YTCaptionTrackTest.ParseAndGetTrackUrl_ValidYTJson (medium severity) L165 - Rule: TI-025: Use ASSERT_TRUE Before Accessing Optional Values - Problem: ParseAndGetTrackUrl_ValidYTJson checks result.has_value() with non-fatal EXPECT_TRUE and then calls result.value(), so a parse regression aborts the test binary instead of failing cleanly; the other…
Timeline (8 of 11 events)
- 2026-11-05 14:34 Label added
QA/Noby netzenbot - 2026-11-05 14:34 Label added
release-notes/excludeby netzenbot - 2026-11-13 19:42 Referenced by brave-core#41668 by netzenbot
- 2026-11-14 18:05 Closed
completedbrave-core#41668 by brian-brave - 2026-11-14 18:05 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