test: Sprint test-1 batch 3 — +70 tests (total 149)#64
Merged
Conversation
Cobertura de funciones puras restantes del Sprint test-1: - arma_matriz_transicion (R/utils_analisis.R): 6 tests para matriz NxN (estructura, suma 100% por fila, orden de etiquetas, manejo de categorías ausentes, soporte CAT_OCUP). - build_tasas_historico (ETL/99-functions.R): 8 tests para output trimestral/anual, invariantes (persistencia + salida = 100, tasas en [0, 100]), filtro desde_panel, vars_extra. - regenerar_calidad_panel (ETL/99-functions.R): 6 tests con with_tempdir() para schema, formato de periodos, idempotencia, % en rango, n_panel <= n_t0. - formato_delta (R/utils_analisis.R): 4 tests para flecha + signo + 'sin comparación' en NA/NULL. - sankey_label_legible (R/utils_analisis.R): 5 tests para mapeo de ESTADO/CAT_OCUP/formalidad, vectorización, fallback. - sankey_nodes_orden (R/utils_analisis.R): 3 tests para estructura de columna y orden no-alfabético. Quedan fuera del Sprint test-1: armo_base_panel modo legacy (mejor cubrirlo en Sprint test-2 junto con runtime mode usando testServer). Suite completa: 149 tests PASS · 0 fail · 1m local. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Cierra el Sprint test-1 cubriendo las funciones puras restantes:
arma_matriz_transicion(matriz NxN, suma 100%, orden, fallbacks)build_tasas_historico(trimestral/anual, invariantes, desde_panel)regenerar_calidad_panel(schema, idempotencia, % en rango)formato_delta,sankey_label_legible,sankey_nodes_orden70 tests nuevos. Suite completa pasa de 79 → 149 tests PASS · 0 fail.
armo_base_panelmodo legacy queda diferido a Sprint test-2 (mejor cubrirlo junto con runtime mode usandotestServer).Test plan
Rscript tests/testthat.R).tests-unit.yml) verde.🤖 Generated with Claude Code