MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / Test_initTemplate

Function Test_initTemplate

pkg/sql2code/parser/parser_test.go:318–340  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

316}
317
318func 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
342func TestGetMysqlTableInfo(t *testing.T) {
343 info, err := GetMysqlTableInfo("root:123456@(192.168.3.37:3306)/account", "user_order")

Callers

nothing calls this directly

Calls 1

initTemplateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…