본문 바로가기

Golang

table driven test

 

  • 테스트 케이스를 map 으로 만들어 직관성이 좋음
  • t.Run 으로 해당 테스트 케이스 이름을 받아 직관성 향상