ECC/docs/tr/rules/golang/testing.md

32 lines
493 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
paths:
- "**/*.go"
- "**/go.mod"
- "**/go.sum"
---
# Go Testing
> Bu dosya [common/testing.md](../common/testing.md) dosyasını Go'ya özgü içerikle genişletir.
## Framework
**Table-driven testler** ile standart `go test` kullan.
## Race Detection
Daima `-race` flag'i ile çalıştır:
```bash
go test -race ./...
```
## Coverage
```bash
go test -cover ./...
```
## Referans
Detaylı Go test pattern'leri ve helper'lar için skill: `golang-testing` dosyasına bakın.