go-test

Installation
SKILL.md

Go Testing Code Guide

Test File Structure

One-to-one matching with the file under test. Test files should be located in the same directory as the target file.

File Naming

Format: {target-file-name}_test.go.

Example: user.gouser_test.go

Test Hierarchy

Organize by method (function) unit as major sections, and by test case as minor sections. Complex methods can have intermediate sections by scenario.

Test Coverage Selection

Omit obvious or overly simple logic (simple getters, constant returns). Prioritize testing business logic, conditional branches, and code with external dependencies.

Installs
2
GitHub Stars
1
First Seen
Mar 1, 2026
go-test — kubrickcode/workflow-toolkit