CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI, or debugging flaky/slow tests. For testify-specific APIs see `samber/cc-skills-golang@golang-stretchr-testify`; for measurement methodology see `samber/cc-skills-golang@golang-benchmark`.

86

1.42x
Quality

82%

Does it follow best practices?

Impact

94%

1.42x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

94%

-2%

Deferred Work Scheduler Tests

Deterministic goroutine timer tests with testing/synctest

Criteria
Without context
With context

synctest import

100%

100%

synctest.Test used

100%

100%

synctest.Wait used

100%

100%

No synctest.Run

100%

100%

No real sleep in tests

100%

100%

Delay fires test

100%

100%

Cancel prevents firing

100%

100%

Context cancel test

100%

100%

Named subtests

55%

33%

90%

37%

Async Pipeline Test Suite

testWithTimeout helper with caller attribution for async tests

Criteria
Without context
With context

t.Helper() called

100%

100%

runtime.Callers used

71%

100%

Panic on timeout

0%

100%

Goroutine + time.After

66%

100%

t.Cleanup signal

0%

100%

Helper reused

75%

100%

TestPipeline_Process naming

50%

100%

Named subtests

0%

0%

ProcessAsync error channel

100%

100%

100%

51%

Template Renderer Test Suite

t.ArtifactDir() for inspectable test output

Criteria
Without context
With context

t.ArtifactDir() used

0%

100%

No os.MkdirTemp

0%

100%

No os.TempDir

100%

100%

No hardcoded paths

100%

100%

t.Logf artifact path

100%

100%

Method naming convention

0%

100%

Named subtests

100%

100%

File content verified

100%

100%

APPROACH.md explains ArtifactDir

0%

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.