MCPcopy Index your code
hub / github.com/zeromicro/go-zero / SelfCheck

Method SelfCheck

tools/goctl/pkg/parser/api/parser/api.go:335–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333}
334
335func (api *API) SelfCheck() error {
336 if err := api.parseReverse(); err != nil {
337 return err
338 }
339 if err := api.checkImportStmt(); err != nil {
340 return err
341 }
342 if err := api.checkInfoStmt(); err != nil {
343 return err
344 }
345 if err := api.checkTypeStmt(); err != nil {
346 return err
347 }
348 if err := api.checkServiceStmt(); err != nil {
349 return err
350 }
351 return api.checkTypeDeclareContext()
352}

Callers 1

ParseFunction · 0.80

Calls 6

parseReverseMethod · 0.95
checkImportStmtMethod · 0.95
checkInfoStmtMethod · 0.95
checkTypeStmtMethod · 0.95
checkServiceStmtMethod · 0.95

Tested by

no test coverage detected