Skip to content

Commit 54da7cf

Browse files
committed
format
1 parent 4149d00 commit 54da7cf

13 files changed

+0
-40
lines changed

tests/cloudsql/cloud_sql_clone_instance_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,15 @@ import (
2525
"net/url"
2626
"reflect"
2727
"regexp"
28-
"strings"
2928
"testing"
3029
"time"
3130

32-
"github.com/google/go-cmp/cmp"
3331
"github.com/googleapis/genai-toolbox/internal/testutils"
3432
"github.com/googleapis/genai-toolbox/tests"
35-
sqladmin "google.golang.org/api/sqladmin/v1"
3633

3734
_ "github.com/googleapis/genai-toolbox/internal/tools/cloudsql/cloudsqlcloneinstance"
3835
)
3936

40-
4137
func TestCloneInstanceToolEndpoints(t *testing.T) {
4238
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
4339
defer cancel()
@@ -156,4 +152,3 @@ func TestCloneInstanceToolEndpoints(t *testing.T) {
156152
})
157153
}
158154
}
159-

tests/cloudsql/cloud_sql_create_backup_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,13 @@ import (
2525
"net/url"
2626
"reflect"
2727
"regexp"
28-
"strings"
2928
"testing"
3029
"time"
3130

32-
"github.com/google/go-cmp/cmp"
3331
"github.com/googleapis/genai-toolbox/internal/testutils"
3432
"github.com/googleapis/genai-toolbox/tests"
35-
"google.golang.org/api/sqladmin/v1"
3633
)
3734

38-
3935
func TestCreateBackupToolEndpoints(t *testing.T) {
4036
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
4137
defer cancel()
@@ -153,4 +149,3 @@ func TestCreateBackupToolEndpoints(t *testing.T) {
153149
})
154150
}
155151
}
156-

tests/cloudsql/cloud_sql_create_database_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@ import (
2525
"net/url"
2626
"reflect"
2727
"regexp"
28-
"strings"
2928
"testing"
3029
"time"
3130

32-
"github.com/google/go-cmp/cmp"
3331
"github.com/googleapis/genai-toolbox/internal/testutils"
3432
"github.com/googleapis/genai-toolbox/tests"
3533
)
3634

37-
3835
func TestCreateDatabaseToolEndpoints(t *testing.T) {
3936
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
4037
defer cancel()
@@ -147,4 +144,3 @@ func TestCreateDatabaseToolEndpoints(t *testing.T) {
147144
})
148145
}
149146
}
150-

tests/cloudsql/cloud_sql_create_users_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@ import (
2525
"net/url"
2626
"reflect"
2727
"regexp"
28-
"strings"
2928
"testing"
3029
"time"
3130

32-
"github.com/google/go-cmp/cmp"
3331
"github.com/googleapis/genai-toolbox/internal/testutils"
3432
"github.com/googleapis/genai-toolbox/tests"
3533
)
3634

37-
3835
func TestCreateUsersToolEndpoints(t *testing.T) {
3936
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
4037
defer cancel()
@@ -153,4 +150,3 @@ func TestCreateUsersToolEndpoints(t *testing.T) {
153150
})
154151
}
155152
}
156-

tests/cloudsql/cloud_sql_get_instances_mcp_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333
_ "github.com/googleapis/genai-toolbox/internal/tools/cloudsql/cloudsqlgetinstances"
3434
)
3535

36-
3736
var (
3837
getInstancesToolType = "cloud-sql-get-instance"
3938
)

tests/cloudsql/cloud_sql_get_instances_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@ import (
2525
"net/url"
2626
"reflect"
2727
"regexp"
28-
"strings"
29-
"sync"
3028
"testing"
3129
"time"
3230

3331
"github.com/googleapis/genai-toolbox/internal/testutils"
3432
"github.com/googleapis/genai-toolbox/tests"
3533
)
3634

37-
3835
func TestGetInstancesToolEndpoints(t *testing.T) {
3936
h := &handler{
4037
instances: map[string]*instance{
@@ -169,4 +166,3 @@ func TestGetInstancesToolEndpoints(t *testing.T) {
169166
})
170167
}
171168
}
172-

tests/cloudsql/cloud_sql_list_databases_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333
"github.com/googleapis/genai-toolbox/tests"
3434
)
3535

36-
3736
func TestListDatabasesToolEndpoints(t *testing.T) {
3837
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
3938
defer cancel()
@@ -160,4 +159,3 @@ func TestListDatabasesToolEndpoints(t *testing.T) {
160159
})
161160
}
162161
}
163-

tests/cloudsql/cloudsql_list_instances_mcp_test.go renamed to tests/cloudsql/cloud_sql_list_instances_mcp_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ func getListInstanceToolsConfig() map[string]any {
7171
}
7272
}
7373

74-
7574
func TestListInstanceMCP(t *testing.T) {
7675
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
7776
if !strings.Contains(r.UserAgent(), "genai-toolbox/") {

tests/cloudsql/cloud_sql_restore_backup_mcp_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package cloudsql
1717
import (
1818
"context"
1919
"encoding/json"
20-
"fmt"
2120
"net/http"
2221
"net/http/httptest"
2322
"net/url"

tests/cloudsql/cloud_sql_restore_backup_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,10 @@ import (
2828
"testing"
2929
"time"
3030

31-
"github.com/google/go-cmp/cmp"
3231
"github.com/googleapis/genai-toolbox/internal/testutils"
3332
"github.com/googleapis/genai-toolbox/tests"
34-
"google.golang.org/api/sqladmin/v1"
3533
)
3634

37-
3835
func TestRestoreBackupToolEndpoints(t *testing.T) {
3936
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
4037
defer cancel()
@@ -166,4 +163,3 @@ func TestRestoreBackupToolEndpoints(t *testing.T) {
166163
})
167164
}
168165
}
169-

0 commit comments

Comments
 (0)