Repository navigation
Fase 9.1: tests unitarios en C con Unity - #11
Merged
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.
Objetivo
Agregar tests unitarios en C con Unity para fortalecer la validación interna de AgentGuard FastPath antes del release
v1.0.0.Esta fase complementa las pruebas de integración, regresión, streaming, GuardSketch y evaluación experimental con una capa de pruebas pequeñas, rápidas y autocontenidas.
Cambios principales
third_party/unity/.tests/unit/.tests/unit/test_probabilistic.c.tests/unit/test_graph_model.c.tests/unit/test_risk_helpers.c.docs/TESTS_UNITARIOS.md.make test-unit.Qué se valida
Para estructuras probabilísticas:
Para grafo:
Para helpers de riesgo:
Validación ejecutada
Alcance
Esta fase no modifica
src/.Esta fase no modifica el CLI.
Esta fase no modifica el motor de detección.
Esta fase no modifica eBPF.
Esta fase no cambia GuardSketch.
Esta fase no agrega dependencias externas del sistema, porque Unity queda versionado en
third_party/unity/.Nota técnica
Los tests unitarios agregados son autocontenidos y validan invariantes de diseño.
Todavía no prueban directamente una biblioteca
libagfast, porque el proyecto aún no separa formalmente el motor de análisis del CLI. Esa separación queda como mejora posterior para una versión futura.Estrategia de merge
Para este PR se recomienda usar Merge pull request.
No se recomienda usar Squash and merge, porque esta rama representa una fase completa del proyecto y conviene conservar la trazabilidad técnica.
Criterio de aceptación
La Fase 9.1 se considera correcta si:
makecompila correctamente.make test-fastpathpasa.make test-regressionpasa.make test-streamingpasa.make test-guardsketchpasa.make test-unitpasa.git status --shortqueda limpio después demake clean.