·go-table-driven-tests
</>

go-table-driven-tests

xe/x

Go 커뮤니티 모범 사례와 이 저장소의 규칙에 따라 Go 테이블 기반 테스트를 작성하세요. Go 테스트를 작성하거나 리팩토링할 때, 특히 반복되는 테스트 패턴이나 복사하여 붙여넣은 테스트 코드를 발견할 때 사용하세요.

2설치·0트렌드·@xe

설치

$npx skills add https://github.com/xe/x --skill go-table-driven-tests

SKILL.md

Table-driven tests are a Go testing idiom that reduces code duplication and makes tests more maintainable. Instead of writing separate test functions for each case, you define a table of test cases and iterate over it.

Do NOT use for: Completely unrelated test scenarios, or when each test requires substantially different setup/teardown logic.

Use a map when you want to ensure test independence:

Go 커뮤니티 모범 사례와 이 저장소의 규칙에 따라 Go 테이블 기반 테스트를 작성하세요. Go 테스트를 작성하거나 리팩토링할 때, 특히 반복되는 테스트 패턴이나 복사하여 붙여넣은 테스트 코드를 발견할 때 사용하세요. 출처: xe/x.

원본 보기

인용 가능한 정보

AI/검색 인용용 안정적인 필드와 명령어.

설치 명령어
npx skills add https://github.com/xe/x --skill go-table-driven-tests
출처
xe/x
카테고리
</>개발 도구
인증됨
최초 등록
2026-02-05
업데이트
2026-02-18

빠른 답변

go-table-driven-tests이란?

Go 커뮤니티 모범 사례와 이 저장소의 규칙에 따라 Go 테이블 기반 테스트를 작성하세요. Go 테스트를 작성하거나 리팩토링할 때, 특히 반복되는 테스트 패턴이나 복사하여 붙여넣은 테스트 코드를 발견할 때 사용하세요. 출처: xe/x.

go-table-driven-tests 설치 방법은?

터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/xe/x --skill go-table-driven-tests 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code나 Cursor에서 사용할 수 있습니다

소스 저장소는 어디인가요?

https://github.com/xe/x

상세

카테고리
</>개발 도구
출처
skills.sh
최초 등록
2026-02-05

관련 Skills