test: expand Rust coverage for Silver - #42
Merged
Conversation
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.
Resumen
Bloque amplio de tests Rust para cerrar coverage Silver, en una sola iteración de implementación.
Métrica principal: PRODUCTION-ONLY
Los tests son inline (
#[cfg(test)]) y el reporte raw de cargo-llvm-cov los incluye en el denominador, por lo que la cifra raw es sólo informativa. La evidencia principal es PRODUCTION-ONLY: derivada de los datos raw de llvm-cov (JSON export) excluyendo exclusivamente los items#[cfg(test)](módulosmod testscompletos, brace-matched, y funciones test-only individuales). Sin excluir ningún archivo de producción, main.rs, app.rs, terminal.rs ni ramas host-specific.PRODUCTION-ONLY PRE (base a8e3d8e) / POST (HEAD)
PRODUCTION-ONLY lines por archivo (POST)
Gaps restantes (no perseguidos por diseño):
Terminal::enter/size/drop,read_key,Renderer::draw,run()/main(),detect_system_locale— HOST_WIN32 / TERMINAL_IO.RAW cargo-llvm-cov (informativo, incluye código de tests inline)
Tests
detect_language_prints_a_supported_locale_tag(HOST_WIN32, aserción trivial) yrenderer_draws_rows_and_skips_unchanged_ones(escribía ANSI al stdout real sin validar output; render_rows ya cubre la generación de UI de forma determinista)Refactor behavior-preserving
App::renderdividido enrender(wrapper:terminal.size()->render_rows->renderer.draw) yrender_rows(width, height)(generación pura de filas, mínimos 42x12 inalterados). Sin cambios de API pública, contenido ni orden de rows.Áreas cubiertas
Confirmaciones
Comandos:
cargo llvm-cov --workspace --all-targets --summary-onlyy--json --output-path target/cov-*.json(cargo-llvm-cov 0.8.7); analizador production-only temporal bajotarget/(no commiteado)