We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93e3e8f commit 3882456Copy full SHA for 3882456
1 file changed
vertexai/genai/client_test.go
@@ -739,3 +739,14 @@ func printResponse(resp *GenerateContentResponse) {
739
}
740
fmt.Println("---")
741
742
+
743
+func TestNewGenAIClient(t *testing.T) {
744
+ ctx := context.Background()
745
+ client, err := NewGenAIClient(ctx, nil)
746
+ if err != nil {
747
+ t.Fatal(err)
748
+ }
749
+ if client == nil {
750
+ t.Error("client must not be nil")
751
752
+}
0 commit comments