zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.34k stars 3.96k forks source link

Implement #4442 , goctl generate unit test files for api handler and logic #4443

Open studyzy opened 3 weeks ago

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.54%. Comparing base (8690859) to head (bfa0586). Report is 160 commits behind head on master.

Additional details and impacted files [see 4 files with indirect coverage changes](https://app.codecov.io/gh/zeromicro/go-zero/pull/4443/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zeromicro)
kesonan commented 2 weeks ago
  1. It is required that goctl description for flag goctl api -test, pls reference file tools/goctl/internal/flags/default_en.json
studyzy commented 2 weeks ago
  1. It is required that goctl description for flag goctl api -test, pls reference file tools/goctl/internal/flags/default_en.json

Added in new commit.

kesonan commented 3 days ago

image Please check the template, then generate the code and test whether the code can be compiled. Currently, there is a problem with the template.