MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / requireSQLServerVars

Function requireSQLServerVars

tests/sqlserver_test.go:34–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32)
33
34func requireSQLServerVars(t *testing.T) {
35 switch "" {
36 case *sqlserverConnName:
37 t.Fatal("'sqlserver_conn_name' not set")
38 case *sqlserverUser:
39 t.Fatal("'sqlserver_user' not set")
40 case *sqlserverPass:
41 t.Fatal("'sqlserver_pass' not set")
42 case *sqlserverDB:
43 t.Fatal("'sqlserver_db' not set")
44 }
45}
46
47func sqlserverDSN() string {
48 return fmt.Sprintf("sqlserver://%s:%s@127.0.0.1?database=%s",

Callers 4

TestSQLServerTCPFunction · 0.85
TestSQLServerGcloudAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected