CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-testing

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

77

1.12x
Quality

72%

Does it follow best practices?

Impact

80%

1.12x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./docs/zh-TW/skills/golang-testing/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

76%

-3%

Text Utility Library: Test Suite

Table-driven tests with helpers and parallel subtests

Criteria
Without context
With context

Table-driven struct slice

100%

100%

t.Run for subtests

100%

100%

Loop variable capture

0%

0%

t.Parallel in subtests

0%

0%

t.Helper in helpers

100%

100%

t.Cleanup for resources

100%

0%

t.TempDir usage

100%

100%

wantErr pattern

100%

100%

Error path coverage

100%

100%

Fatalf vs Errorf

100%

100%

got/want error format

37%

100%

Public API testing

100%

100%

No time.Sleep

100%

100%

78%

22%

Algorithm Performance Comparison: Benchmark Suite

Benchmark tests with size parametrization and memory stats

Criteria
Without context
With context

b.ResetTimer after setup

100%

100%

Size-parametrized benchmarks

33%

100%

Multiple size values

100%

100%

benchmem flag documented

37%

0%

b.N loop structure

100%

100%

Copy to avoid cache effects

60%

100%

Multiple implementations compared

0%

0%

BenchmarkXxx naming

100%

100%

Table-driven tests also present

0%

100%

got/want error format

0%

50%

No time.Sleep

100%

100%

88%

10%

REST API Handler: Test Coverage for Report Endpoint

HTTP handler testing and golden files

Criteria
Without context
With context

httptest.NewRequest

100%

100%

httptest.NewRecorder

100%

100%

Golden file directory

100%

100%

-update flag support

100%

100%

Golden file read comparison

100%

100%

Interface for dependency

100%

100%

Mock struct with func fields

0%

100%

Table-driven HTTP tests

100%

100%

wantStatus pattern

100%

100%

t.Helper in helpers

0%

0%

t.Cleanup usage

0%

0%

Error path coverage

100%

100%

got/want error format

50%

100%

No time.Sleep

100%

100%

Repository
haniakrim21/everything-claude-code
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.