go-testing
Go Testing
Pick the assertion stack by what your project allows:
- Dependency-free project — stdlib
testingonly. No third-party assertions. - Project that allows deps — use
go-testdeep. Composable operators (td.Cmp,td.Struct,td.Smuggle,td.Between, …) produce precise diffs. - Never use testify. Vague messages, the
assert/requiresplit, andinterface{}comparisons are worse than either alternative.
References: references/testing.md for the carved style guide,
references/perf-and-parallel.md for parallel tests, benchmarks, and
the race detector.
Table-driven with named cases
More from marsolab/skills
sys-arch
Design production-grade software systems with expert knowledge of architecture patterns, distributed systems, cloud platforms, and operational excellence. Use this skill when architecting complex systems, evaluating technology choices, designing scalable infrastructure, or making critical architectural decisions requiring trade-off analysis.
22front-dev
>-
22go-dev
>-
21copy
Professional copywriter for SaaS and startups. Expert in landing page copy, positioning, messaging, conversion optimization, and voice-of-customer research. Use when writing compelling copy for SaaS products, landing pages, marketing materials, or when you need help with product positioning and messaging strategy.
12apple-dev
Comprehensive macOS and iOS development expertise covering Swift best practices, SwiftUI design patterns, Human Interface Guidelines, Apple frameworks, and performance optimization. Use when developing native Apple applications, implementing SwiftUI interfaces, working with Apple frameworks (Foundation, UIKit, AppKit, Core Data, CloudKit, etc.), optimizing app performance, following HIG principles, or writing production-quality Swift code for iOS, macOS, watchOS, or tvOS platforms.
6go-sql
>-
2