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

Function TestSQLServerTCP

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

Source from the content-addressed store, hash-verified

50}
51
52func TestSQLServerTCP(t *testing.T) {
53 if testing.Short() {
54 t.Skip("skipping SQL Server integration tests")
55 }
56 requireSQLServerVars(t)
57 // Prepare the initial arguments
58 args := []string{*sqlserverConnName}
59 // Add the IP type flag using the helper
60 args = AddIPTypeFlag(args)
61 // Run the test
62 proxyConnTest(t, args, "sqlserver", sqlserverDSN())
63}
64
65func TestSQLServerImpersonation(t *testing.T) {
66 if testing.Short() {

Callers

nothing calls this directly

Calls 4

requireSQLServerVarsFunction · 0.85
AddIPTypeFlagFunction · 0.85
proxyConnTestFunction · 0.85
sqlserverDSNFunction · 0.85

Tested by

no test coverage detected