From 3fc0ecdc543920a1d210c826e4e11c84d8c46e10 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Sun, 17 Mar 2024 01:00:20 -0400 Subject: [PATCH] Delete unused test --- .../common/internal/util/ConversionsTest.kt | 64 ------------------- 1 file changed, 64 deletions(-) delete mode 100644 common/src/test/java/com/google/ai/client/generativeai/common/internal/util/ConversionsTest.kt diff --git a/common/src/test/java/com/google/ai/client/generativeai/common/internal/util/ConversionsTest.kt b/common/src/test/java/com/google/ai/client/generativeai/common/internal/util/ConversionsTest.kt deleted file mode 100644 index 29de80e0..00000000 --- a/common/src/test/java/com/google/ai/client/generativeai/common/internal/util/ConversionsTest.kt +++ /dev/null @@ -1,64 +0,0 @@ -/// * -// * Copyright 2024 Google LLC -// * -// * Licensed under the Apache License, Version 2.0 (the "License"); -// * you may not use this file except in compliance with the License. -// * You may obtain a copy of the License at -// * -// * http://www.apache.org/licenses/LICENSE-2.0 -// * -// * Unless required by applicable law or agreed to in writing, software -// * distributed under the License is distributed on an "AS IS" BASIS, -// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// * See the License for the specific language governing permissions and -// * limitations under the License. -// */ -// -// package com.google.ai.client.generativeai.internal.util -// -// import com.google.ai.client.generativeai.internal.api.shared.Content -// import com.google.ai.client.generativeai.internal.api.shared.TextPart -// import com.google.ai.client.generativeai.type.content -// import io.kotest.matchers.shouldBe -// import org.junit.Test -// -// class ConversionsTest { -// -// @Test -// fun `test content conversion toInternal (role not mentioned)`() { -// val content = content { text("test") }.toInternal() -// content.run { -// // default role should be a "user" -// role shouldBe "user" -// -// // only one part should be present -// parts.size shouldBe 1 -// parts[0].run { (this as TextPart).text shouldBe "test" } -// } -// } -// -// @Test -// fun `test content conversion toInternal (role mentioned)`() { -// val content = content(role = "model") { text("test") }.toInternal() -// content.run { -// // Role should be a "model" -// role shouldBe "model" -// -// // only one part should be present -// parts.size shouldBe 1 -// parts[0].run { (this as TextPart).text shouldBe "test" } -// } -// } -// -// @Test -// fun `test content conversion toPublic (role not mentioned)`() { -// val content = Content(parts = listOf(TextPart("test"))).toPublic() -// content.role shouldBe "user" -// } -// -// @Test -// fun `test content conversion toPublic (role mentioned)`() { -// val content = Content(role = "model", parts = listOf(TextPart("test"))).toPublic() -// content.role shouldBe "model" -// } -// }