golang-testing
Patrones de pruebas Go incluyendo pruebas basadas en tablas, subpruebas, benchmarks, fuzzing y cobertura de código. Sigue la metodología TDD con prácticas idiomáticas de Go.
Original · translation is not supported for this source languageTarget: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original text
Topics in the source
- Patrones de Pruebas Go
- Cuándo Activar
- Flujo de Trabajo TDD para Go
- El Ciclo RED-GREEN-REFACTOR
- TDD Paso a Paso en Go
- Pruebas Basadas en Tablas
- Pruebas Basadas en Tablas con Casos de Error
- Subpruebas y Sub-benchmarks
Patrones completos de pruebas Go para escribir pruebas confiables y mantenibles siguiendo la metodología TDD. Escribir nuevas funciones o métodos Go Agregar cobertura de pruebas a código existente Crear benchmarks para código crítico en rendimiento Implementar pruebas fuzz para validación de entradas Seguir el flujo de trabajo TDD en proyectos Go El patrón estándar para pruebas Go. Permite cobertura comprensiva con código mínimo. Probar contra archivos de salida esperada almacenados en testdata/. | Tipo de Código | Objetivo | |-----------|--------| | Lógica de negocio crítica | 100% | | APIs públicas | 90%+ | | Código general | 80%+ | | Código generado | Excluir | HACER: Escribir pruebas PRIMERO (TDD) Usar pruebas basadas en tablas para cobertura comprensiva Probar comportamiento, no implementación Usar t.Helper() en funciones helper Usar t.Parallel() para pruebas independientes Limpiar recursos con t.Cleanup() Usar nombres de prueba significativos que describan el escenario NO HACER: Probar funciones privadas directamente (probar a través de la API pública) Usar time.Sleep() en pruebas (usar canales o condiciones) Ignorar pruebas inestables (corregirlas o eliminarlas) Mockear todo
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- docs/es/skills/golang-testing/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:48.759Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.