Skip to content
Back to skills

Golang Testing

ASecurity

Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.

  • 12 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 6, 2026
ai-agentsgotestingci/cd

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 6, 2026

npx -y skills add Nmor/the-council --skill golang-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Golang Testing?

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

Security grade badge for Golang Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nmor-golang-testing-the-council/badge)](https://www.skillsdirectory.com/skills/nmor-golang-testing-the-council)

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: golang-testing
description: Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.
disable-model-invocation: true
---

# Go Testing Patterns

> **Size budget: 8 KB** — `token-budget.mjs --check`.

Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.

## Working procedure

1. Establish the relevant mode and existing evidence; do not repeat completed intake.
2. Handle every returned value and error in tests. Test observable behavior, error paths and concurrency where applicable; run race detection for shared state. Go coverage reports statements/basic blocks and does not establish branch coverage.
3. Read only the corresponding sections below before applying their examples.
4. Verify the result with meaningful positive, negative and failure controls. Record actual outcomes, limitations and next action.

## Selected references

- [When to Activate](references/procedure.md#when-to-activate) — read when this part of the task applies.
- [TDD Workflow for Go](references/procedure.md#tdd-workflow-for-go) — read when this part of the task applies.
- [Table-Driven Tests](references/procedure.md#table-driven-tests) — read when this part of the task applies.
- [Subtests and Sub-benchmarks](references/procedure.md#subtests-and-sub-benchmarks) — read when this part of the task applies.
- [Test Helpers](references/procedure.md#test-helpers) — read when this part of the task applies.
- [Golden Files](references/procedure.md#golden-files) — read when this part of the task applies.
- [Mocking with Interfaces](references/procedure.md#mocking-with-interfaces) — read when this part of the task applies.
- [Benchmarks](references/procedure.md#benchmarks) — read when this part of the task applies.
- [Fuzzing (Go 1.18+)](references/procedure.md#fuzzing-go-118) — read when this part of the task applies.
- [Test Coverage](references/procedure.md#test-coverage) — read when this part of the task applies.
- [HTTP Handler Testing](references/procedure.md#http-handler-testing) — read when this part of the task applies.
- [Testing Commands](references/procedure.md#testing-commands) — read when this part of the task applies.
- [Best Practices](references/procedure.md#best-practices) — read when this part of the task applies.
- [Integration with CI/CD](references/procedure.md#integration-with-cicd) — read when this part of the task applies.

The [full procedure](references/procedure.md) preserves detailed examples and standards.
Load relevant excerpts rather than the entire reference. Runtime capabilities and higher-priority instructions govern imported templates.

Files in this skill

  • SKILL.md2.7 KB
  • references/procedure.md22.5 KB

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.

Comments

Loading comments…