Skip to content

Commit

Permalink
Remove testbench for method that was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Grifs committed Dec 9, 2024
1 parent e514e9c commit 4c8cb7d
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/test/scala/io/viash/schema/SchemaTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,7 @@ import io.viash.helpers.Logger

class SchemaTest extends AnyFunSuite with BeforeAndAfterAll with PrivateMethodTester{
Logger.UseColorOverride.value = Some(false)

test("Check type name trimming") {
val checks = Map (
"foo" -> "foo",
"foo.bar" -> "bar",
"foo.bar.baz" -> "baz",
"foo.bar[baz]" -> "bar[baz]",
"foo[bar.baz]" -> "foo[baz]",
"foo[bar,baz]" -> "foo[bar,baz]",
"foo[bar.baz,quux]" -> "foo[baz,quux]",
"foo[bar,baz.quux]" -> "foo[bar,quux]"
)

val trimTypeName = PrivateMethod[String](Symbol("trimTypeName"))

for ((k, v) <- checks) {
val res = CollectedSchemas invokePrivate trimTypeName(k)
assert(res == v, s"$k -> $v != $res")
}
}


test("All schema class val members should be annotated") {
val nonAnnotated = CollectedSchemas.getAllNonAnnotated

Expand Down

0 comments on commit 4c8cb7d

Please sign in to comment.