CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-testing

Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。

Install with Tessl CLI

npx tessl i github:affaan-m/everything-claude-code --skill golang-testing
What are skills?

63

Does it follow best practices?

Validation for skill structure

SKILL.md
Review
Evals

Evaluation results

60%

28%

Config File Parser Tests

Table-driven tests with parallelism and helpers

Criteria
Without context
With context

Table-driven structure

0%

83%

wantErr field

0%

100%

Error check before value

0%

100%

Range variable capture

0%

0%

Parallel subtests

0%

0%

t.Helper() in helpers

0%

0%

t.Cleanup() for teardown

50%

0%

t.TempDir() usage

100%

100%

Meaningful test names

37%

100%

Negative test coverage

100%

100%

No time.Sleep in tests

100%

100%

Without context: $0.3901 · 1m 37s · 13 turns · 16 in / 7,376 out tokens

With context: $0.5642 · 1m 54s · 25 turns · 278 in / 5,812 out tokens

100%

13%

Inventory API Handler Tests

Interface-based mocking and HTTP handler tests

Criteria
Without context
With context

Interface for mock

100%

100%

Mock struct with func fields

100%

100%

No third-party mock libraries

100%

100%

httptest.NewRequest usage

100%

100%

httptest.NewRecorder usage

100%

100%

HTTP status code assertions

100%

100%

Table-driven HTTP tests

0%

100%

Public API only

100%

100%

Mock controls behavior per case

100%

100%

t.Helper() in helpers

50%

100%

Without context: $0.3427 · 2m 8s · 17 turns · 22 in / 4,566 out tokens

With context: $0.5334 · 2m 21s · 23 turns · 309 in / 5,676 out tokens

94%

7%

Text Codec Benchmarks and Fuzz Tests

Benchmark sub-tests and fuzz test invariants

Criteria
Without context
With context

b.ResetTimer() after setup

25%

100%

b.Run() for size variants

100%

100%

b.N loop present

100%

100%

Seed corpus with f.Add()

100%

100%

Invariant property assertion

100%

100%

Fuzz uses t.Errorf/Fatalf

100%

100%

Copy before mutating in bench

100%

100%

-benchmem note or flag

33%

0%

Table-driven benchmarks avoided

100%

100%

Fuzz function signature

100%

100%

Without context: $0.2695 · 3s · 2 turns · 4 in / 112 out tokens

With context: $0.5535 · 3s · 2 turns · 4 in / 119 out tokens

Evaluated
Agent
Claude Code

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.