Skip to content
Back to skills

Go Testing

ASecurity

Тестирование Go: table-driven tests, httptest, интеграционные тесты, покрытие и regression tests.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
developmentgobashsqltesting

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add justxor/golang-agent-skills-ru --skill go-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Go Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Go Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/justxor-go-testing/badge)](https://www.skillsdirectory.com/skills/justxor-go-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: go-testing
description: "Тестирование Go: table-driven tests, httptest, интеграционные тесты, покрытие и regression tests."
---

# Тестирование Golang
1. Определи проверяемый контракт, типичные и граничные значения.
2. Добавь регрессионный тест перед исправлением ошибки.
3. Используй t.Run для именованных случаев, t.Helper для помощников, t.Cleanup для ресурсов.
4. Проверяй наблюдаемое поведение, не внутренние вызовы без необходимости.
5. Для HTTP используй httptest.NewRecorder и httptest.NewRequest.
6. Для SQL-поведения используй изолированную тестовую базу, не production.
## Команды
```bash
go test ./...
go test -race ./...
go test -cover ./...
```
Не заявляй о прохождении команд, если они не запускались. Опиши причины flaky-теста и устрани зависимость от времени, порядка исполнения и общего состояния.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.