stacklok/mecatl/go-table-tests

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Write idiomatic table-driven Go tests that stay offline and follow this repo's conventions.

Install

npx vskill@latest install stacklok/mecatl/go-table-tests

SKILL.md

Go table-driven tests

When adding tests in this codebase:

  1. Stay offline. Use mockllm + memfs (or a t.TempDir() for file-backed

adapters). Never hit a live model or the network in a test.

  1. Prefer table-driven cases for any behaviour with multiple inputs:

``go func TestThing(t *testing.T) { cases := []struct { name string in string want string }{ {name: "empty", in: "", want: ""}, {name: "basic", in: "x", want: "X"}, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { if got := Thing(tc.in); got != tc.want { t.Errorf("Thing(%q) = %q, want %q", tc.in, got, tc.want) } }) } } ``

  1. Assert error results, not panics. Tool-level failures come back as an

error ToolResult (res.IsError), not a Go error — check the result.

  1. Run the suite with task test (which uses -race).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/stacklok/mecatl/go-table-tests/badge)](https://verified-skill.com/skills/stacklok/mecatl/go-table-tests)

Something wrong with this skill or its page? Tell us.