CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-testing

Provides a comprehensive guide for writing production-ready Golang tests. Covers table-driven tests, test suites with testify, mocks, unit tests, integration tests, benchmarks, code coverage, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, memory leaks, CI with GitHub Actions, and idiomatic naming conventions. Use this whenever writing tests, asking about testing patterns or setting up CI for Go projects. Essential for ANY test-related conversation in Go.

85

1.95x
Quality

82%

Does it follow best practices?

Impact

92%

1.95x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

80%

25%

Test Coverage for a Financial Calculator Package

gotests scaffold usage

Criteria
Without context
With context

gotests used

66%

100%

Method naming convention

0%

100%

name field in table tests

100%

100%

t.Run used

100%

100%

t.Parallel in subtests

0%

100%

Top-level t.Parallel

0%

100%

assert.New(t) pattern

0%

0%

Edge cases covered

100%

100%

External test package

100%

0%

96%

43%

Test Suite for an Event Debouncer

testing/synctest deterministic time

Criteria
Without context
With context

synctest.Run used

0%

100%

No real time.Sleep

100%

100%

Correct import

0%

100%

Time-window expiry tested

100%

100%

Early-trigger suppression

100%

100%

Stop cancels callback

100%

100%

goleak used

0%

100%

table-driven with name

50%

50%

External test package

0%

100%

No flakiness patterns

100%

100%

100%

66%

Test Suite for a Distributed Lock Client

testWithTimeout helper pattern

Criteria
Without context
With context

testWithTimeout exists

40%

100%

t.Helper() first statement

100%

100%

Cleanup channel pattern

0%

100%

Panic on timeout

0%

100%

Caller location in panic

0%

100%

Helper applied to multiple tests

100%

100%

goleak for goroutine cleanup

0%

100%

table-driven with name field

0%

100%

t.Parallel in independent tests

0%

100%

No order dependence

100%

100%

Repository
samber/cc-skills-golang
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.