mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-08 07:37:48 +02:00
32 lines
493 B
Markdown
32 lines
493 B
Markdown
---
|
||||
|
|
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.
|