coding/golang-testing/SKILL.md
Go testing patterns for unit tests, table-driven tests, subtests, test helpers, mocking/fakes, benchmarks, fuzzing, and coverage. Use when writing or reviewing Go tests to improve correctness, stability, and maintainability.
npx skillsauth add aeondave/malskill golang-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill is about writing tests that are reliable, readable, and useful as documentation.
time.Sleep() unless unavoidable.t.Parallel() only when the test is truly isolated.test-driven-development when implementing persistent code or bug fixes test-first.testing-reliability for mock/timing anti-patterns and systematic-debugging when failure attribution is unclear.-count) and isolate state/time dependencies.t.Run("case", ...))b.ReportAllocs())Load on demand:
references/unit-tests.md — TDD loop, table tests, subtests, parallel subtestsreferences/helpers-fixtures.md — helpers, TempDir, Cleanup, testdata, golden filesreferences/mocking-fakes.md — interfaces for dependencies, fakes vs mocks, examplesreferences/http-testing.md — httptest patterns and JSON assertionsreferences/bench-fuzz.md — benchmarks and fuzzing best practicesreferences/coverage-ci.md — cover profiles, coverpkg notes, CI integration cautionsreferences/commands.md — go test command recipes (race, timeout, count, patterns)development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.