Skip to content

test: adiciona 26 testes para Tools.php cobrindo métodos de comunicaç…#1323

Merged
robmachado merged 2 commits into
nfephp-org:masterfrom
gersonfs:testes2
Apr 13, 2026
Merged

test: adiciona 26 testes para Tools.php cobrindo métodos de comunicaç…#1323
robmachado merged 2 commits into
nfephp-org:masterfrom
gersonfs:testes2

Conversation

@gersonfs
Copy link
Copy Markdown
Collaborator

…ã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%.

…ã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
Copy link
Copy Markdown

codecov Bot commented Apr 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.16%. Comparing base (7d44d52) to head (f32a068).
⚠️ Report is 4 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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%.
@robmachado robmachado merged commit 0be6d7b into nfephp-org:master Apr 13, 2026
9 checks passed
@gersonfs gersonfs deleted the testes2 branch April 13, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants