Debian Codegraph @

pvtz/config_test.go

raw symbols SCIP
1 package pvtz
2
3 import (
4 "os"
5 )
6
7 //Modify with your Access Key Id and Access Key Secret
8
9 var (
10 TestAccessKeyId = os.Getenv("AccessKeyId")
11 TestAccessKeySecret = os.Getenv("AccessKeySecret")
12 TestVPCId = os.Getenv("VPCId")
13 )
14
15 var testClient *Client
16
17 func NewTestClient() *Client {
18 if testClient == nil {
19 testClient = NewClient(TestAccessKeyId, TestAccessKeySecret)
20 }
21 return testClient
22 }
23
24 var testDebugClient *Client
25
26 func NewTestClientForDebug() *Client {
27 if testDebugClient == nil {
28 testDebugClient = NewClient(TestAccessKeyId, TestAccessKeySecret)
29 testDebugClient.SetDebug(true)
30 }
31 return testDebugClient
32 }