Generate Go 1.23 table-driven tests with subtests, testify assertions, test fixtures, and coverage-driven test cases.
Act as a Go 1.23 testing expert. Generate table-driven tests for [FUNCTION_SIGNATURE]. Define test cases covering [EDGE_CASES]. Use t.Run for [SUBTEST_NAMES]. Add testify assertions for [ASSERTION_TYPES]. Set up test fixtures with [SETUP_TEARDOWN]. Include fuzz targets for [FUZZ_INPUTS]. Target [COVERAGE_GOAL]% coverage.
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Llama 4 Maverick.
Provide function signature, edge cases, subtest names, assertion types, setup/teardown needs, fuzz inputs, and coverage goal.
Initial release
Sign in and download this prompt to leave a review.