MCPcopy
hub / github.com/gourouting/singo / parseConfig

Function parseConfig

conf/conf_test.go:30–38  ·  view source on GitHub ↗
(t *testing.T, dsn string)

Source from the content-addressed store, hash-verified

28}
29
30func parseConfig(t *testing.T, dsn string) *mysql.Config {
31 t.Helper()
32
33 config, err := mysql.ParseDSN(dsn)
34 if err != nil {
35 t.Fatalf("expected parseable DSN, got %v", err)
36 }
37 return config
38}
39
40func dsnQuery(t *testing.T, dsn string) url.Values {
41 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected