brave-browser#61241 Test best-practice violations in matched_rule_unittest.cc
State: closed (completed) · created · closed · updated · discovered via linked:brave/brave-core#41668
tests QA/No release-notes/exclude OS/Desktop privacy/psst tests/test-quality tests/best-practice-violation
Unit tests in components/psst/core/browser/matched_rule_unittest.cc break test best practices documented in docs/best-practices. MatchedRuleTest.LoadSimpleMatchedRule, MatchedRuleTest.TryToLoadMatchedRuleWithNoUserOrPolicyScript (medium severity) L94 - Rule: TI-025: Use ASSERT_TRUE Before Accessing Optional Values - Problem: MatchedRuleTest dereferences the std::optional returned by PsstRule::ParseRules() (psst_rules->size(), ->front()) without first asserting it has a…
Timeline (6 of 10 events)
- 2026-11-05 15:47 Label added
QA/Noby netzenbot - 2026-11-05 15:47 Label added
release-notes/excludeby netzenbot - 2026-11-13 19:42 Referenced by brave-core#41668 by netzenbot
- 2026-11-14 18:05 Closed
completedby brian-brave - 2026-11-14 18:06 Milestone set
1.102.x - Nightlyby brave-builds - 2026-11-23 16:42 Label added
OS/Desktopby netzenbot