(t *testing.T)
| 316 | } |
| 317 | |
| 318 | func Test_initTemplate(t *testing.T) { |
| 319 | initTemplate() |
| 320 | |
| 321 | defer func() { recover() }() |
| 322 | modelStructTmplRaw = "{{if .foo}}" |
| 323 | modelTmplRaw = "{{if .foo}}" |
| 324 | updateFieldTmplRaw = "{{if .foo}}" |
| 325 | handlerCreateStructTmplRaw = "{{if .foo}}" |
| 326 | handlerUpdateStructTmplRaw = "{{if .foo}}" |
| 327 | handlerDetailStructTmplRaw = "{{if .foo}}" |
| 328 | modelJSONTmplRaw = "{{if .foo}}" |
| 329 | protoFileTmplRaw = "{{if .foo}}" |
| 330 | protoFileSimpleTmplRaw = "{{if .foo}}" |
| 331 | protoFileForWebTmplRaw = "{{if .foo}}" |
| 332 | protoFileForSimpleWebTmplRaw = "{{if .foo}}" |
| 333 | protoMessageCreateTmplRaw = "{{if .foo}}" |
| 334 | protoMessageUpdateTmplRaw = "{{if .foo}}" |
| 335 | protoMessageDetailTmplRaw = "{{if .foo}}" |
| 336 | serviceCreateStructTmplRaw = "{{if .foo}}" |
| 337 | serviceUpdateStructTmplRaw = "{{if .foo}}" |
| 338 | serviceStructTmplRaw = "{{if .foo}}" |
| 339 | initTemplate() |
| 340 | } |
| 341 | |
| 342 | func TestGetMysqlTableInfo(t *testing.T) { |
| 343 | info, err := GetMysqlTableInfo("root:123456@(192.168.3.37:3306)/account", "user_order") |
nothing calls this directly
no test coverage detected
searching dependent graphs…