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

Function TestParseSQLs

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

Source from the content-addressed store, hash-verified

249}
250
251func TestParseSQLs(t *testing.T) {
252 for i, test := range testData {
253 msg := fmt.Sprintf("sql-%d", i)
254 codes, err := ParseSQL(test[0], WithNoNullType())
255 if !assert.NoError(t, err, msg) {
256 continue
257 }
258 for k, v := range codes {
259 if len(v) > 100 {
260 v = v[:100]
261 }
262 t.Log(i+1, k, v)
263 }
264 }
265}
266
267func Test_parseOption(t *testing.T) {
268 opts := []Option{

Callers

nothing calls this directly

Calls 2

ParseSQLFunction · 0.85
WithNoNullTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…