[issue-89] fix: precision follow-up C5/C7/C9/C3 (#89)#91
Closed
vinicq wants to merge 1 commit into
Closed
Conversation
Três achados de auditoria fora do escopo da #88: 1. C5/C7 (P1): Should Be Equal As Integers/Numbers/Strings escapavam do self-compare (C7) e literais iguais (C5) porque o check casava exato "should be equal". As variantes tipadas são igualmente tautológicas. Novo conjunto SHOULD_BE_EQUAL_KEYWORDS, com strip de prefixo de library (BuiltIn.Should Be Equal As Integers também casa). 2. C9 (P2): STARTS: / EQUALS: com prefixo vazio é catch-all (toda mensagem começa com ""), aceitando qualquer erro. Novo padrão _CATCH_ALL_PREFIX_RE ^(STARTS|EQUALS):\s*$ no OR de catch-all. STARTS: connection continua limpo. 3. C3 (P3): swallow (Run Keyword And Return Status) aninhado sob Run Keyword And Continue On Failure reportava C2b (LOW) em vez de C3 (HIGH). _swallow_status_unused passa a desembrulhar uma camada do wrapper soft-assert via _effective_swallow. Warn On Failure fica de fora de propósito (já força o teste verde). A atribuição ${status}= fica no call externo, então a detecção de status não-usado segue correta. Regressões para os três itens, com os casos de aceite que devem continuar limpos. Closes #89
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Empilhado sobre #90 (base =
fix/issue-88-warn-on-failure). Mergear #90 primeiro; a base reverte paramainsozinha.O que mudou
Três achados de auditoria, ordenados por severidade.
1. C5/C7 (P1, FN).
Should Be Equal As Integers/Numbers/Stringsescapavam do self-compare (C7) e literais iguais (C5): o check casava exatoshould be equal. As variantes tipadas (BuiltIn, idiomáticas) são igualmente tautológicas. Novo conjuntoSHOULD_BE_EQUAL_KEYWORDS, com strip de prefixo de library (BuiltIn.Should Be Equal As Integerstambém casa).As Integers ${x} ${x}-> C7;As Numbers 5 5-> C5;As Integers ${a} ${b}eAs Numbers 5 6continuam limpos.2. C9 (P2, FN).
STARTS:/EQUALS:com prefixo vazio é catch-all (toda mensagem começa com""), aceitando qualquer erro. Novo_CATCH_ALL_PREFIX_RE^(STARTS|EQUALS):\s*$no OR de catch-all.STARTS:vazio -> C9;STARTS: connectioncontinua limpo.3. C3 (P3). Swallow (
Run Keyword And Return Status) aninhado sobRun Keyword And Continue On Failurereportava C2b (LOW) em vez de C3 (HIGH)._swallow_status_unuseddesembrulha uma camada do wrapper soft-assert via_effective_swallow. A atribuição${status}=fica no call externo, então a detecção de status não-usado segue correta.Warn On Failurefica de fora de propósito (já força o teste verde - nada a detectar).Testes
Regressões para os três itens, incluindo os casos de aceite que devem continuar limpos. Suíte completa: 257 verdes.
Closes #89