SKILL

golang-testing

Table-driven testler, subtestler, benchmark'lar, fuzzing ve test coverage içeren Go test desenleri. TDD metodolojisi ile idiomatic Go uygulamalarını takip eder.

Original · translation did not pass checks

Target: 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

  • Go Test Desenleri
  • Ne Zaman Etkinleştirmeli
  • Go için TDD Workflow'u
  • RED-GREEN-REFACTOR Döngüsü
  • Go'da Adım Adım TDD
  • Table-Driven Testler
  • Hata Durumları ile Table-Driven Testler
  • Subtestler ve Sub-benchmark'lar

TDD metodolojisini takip eden güvenilir, bakımı kolay testler yazmak için kapsamlı Go test desenleri. Yeni Go fonksiyonları veya metodları yazarken Mevcut koda test coverage eklerken Performans-kritik kod için benchmark'lar oluştururken Input validation için fuzz testler implement ederken Go projelerinde TDD workflow'u takip ederken Go testleri için standart desen. Minimal kodla kapsamlı coverage sağlar. testdata/ içinde saklanan beklenen çıktı dosyalarına karşı test etme. | Kod Tipi | Hedef | |----------|-------| | Kritik iş mantığı | 100% | | Public API'ler | 90%+ | | Genel kod | 80%+ | | Oluşturulan kod | Hariç tut | YAPIN: Testleri ÖNCE yazın (TDD) Kapsamlı coverage için table-driven testler kullanın İmplementasyon değil davranış test edin Helper fonksiyonlarda t.Helper() kullanın Bağımsız testler için t.Parallel() kullanın Kaynakları t.Cleanup() ile temizleyin Senaryoyu açıklayan anlamlı test isimleri kullanın YAPMAYIN: Private fonksiyonları doğrudan test etmeyin (public API üzerinden test edin) Testlerde time.Sleep() kullanmayın (channel'lar veya condition'lar kullanın) Flaky testleri göz ardı etmeyin (düzeltin veya kaldırın) Her şeyi mocklamayın (mümkün olduğunda integration

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
affaan-m/ECC
Source file
docs/tr/skills/golang-testing/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

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

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:49.938Z.

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.