test: adiciona 26 testes para Tools.php cobrindo métodos de comunicaç…#1323
Merged
Conversation
…ão SEFAZ Adiciona testes com mock de retorno (SoapFake) para: sefazDistDFe (numNSU, chave), sefazDownload, sefazCsc (consulta, solicita, revoga), sefazManifestaLote (ciência, não realizada, múltiplos eventos), sefazComprovanteEntrega (com/sem GPS, cancelamento), sefazInsucessoEntrega (com justificativa, cancelamento), sefazConciliacao (modelo 55/65, cancelamento, com CNPJPag/UFReceb), sefazEventoLote (confirmação, desconhecimento, UF vazia). Cobertura do Tools.php: 82.27% -> 85.32%.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1323 +/- ##
============================================
+ Coverage 87.80% 89.16% +1.35%
Complexity 1685 1685
============================================
Files 53 53
Lines 12001 12001
============================================
+ Hits 10538 10701 +163
+ Misses 1463 1300 -163 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Adiciona 2 fixtures TXT abrangentes e 5 novos testes cobrindo entities do Parser: referências (BA03, BA19, BA20), retirada (F, F02), entrega (G, G02), DI (I18, I25), rastreabilidade (I80), II (P), PISST (R, R02), COFINSST (T, T02), ICMS variados (N02, N03, N04, N05, N06, N07, N08), PIS variados (Q02, Q03, Q04, Q05, Q07), COFINS variados (S02, S03, S04, S05, S07), transporte (X03, X04, X26, X33), cobrança (Y02, Y07), infAdic detalhada (Z04, Z07, Z10), e tag desconhecida (exception). Cobertura geral: 89.12% -> 89.95%.
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.
…ão SEFAZ
Adiciona testes com mock de retorno (SoapFake) para: sefazDistDFe (numNSU, chave), sefazDownload, sefazCsc (consulta, solicita, revoga), sefazManifestaLote (ciência, não realizada, múltiplos eventos), sefazComprovanteEntrega (com/sem GPS, cancelamento), sefazInsucessoEntrega (com justificativa, cancelamento), sefazConciliacao (modelo 55/65, cancelamento, com CNPJPag/UFReceb), sefazEventoLote (confirmação, desconhecimento, UF vazia).
Cobertura do Tools.php: 82.27% -> 85.32%.