Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: example package에 mocking 예제 추가 #6

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

n-y-kim
Copy link
Member

@n-y-kim n-y-kim commented Dec 10, 2023

PR 요약

  • Mocking test code 추가

변경 사항 명시

example 패키지에 예시 테스트 추가

  • README.md: example 패키지 설명
  • server.go: example 용 서버 코드(Create만 대략 구현)
  • server_test.go: example용 테스트 코드
  • main.go: 혹시 example의 Create 작동 디버깅 해보고 싶으신 분들을 위해 작성해뒀습니다. 당연히 헤더랑 토큰 값 설정이 안되어 있어서 404 뜹니다. request/response 형태 확인용임.

.mockery.yml 파일 추가

mockery cli로 mocking 인스턴스 생성

go.mod

testify 추가

기타 특이사항

  • 궁금한 거 있으면 슬랙으로 질문 주세요.

@dev-kimdoyoung dev-kimdoyoung mentioned this pull request Dec 10, 2023
@n-y-kim n-y-kim merged commit 9fa557a into cloud-club:main Dec 11, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mock 예시 생성 및 공유
1 participant