Skip to content

Commit 3882456

Browse files
BenjaminKazemicopybara-github
authored andcommitted
chore(vertexai): Add some tests
FUTURE_COPYBARA_INTEGRATE_REVIEW=#14330 from googleapis:librarian-20260402T153541Z 64dc127 PiperOrigin-RevId: 895405821
1 parent 93e3e8f commit 3882456

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

vertexai/genai/client_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,3 +739,14 @@ func printResponse(resp *GenerateContentResponse) {
739739
}
740740
fmt.Println("---")
741741
}
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

Comments
 (0)