From b0e75074405adc786e495f7d16c57ca0cecbe91c Mon Sep 17 00:00:00 2001 From: Hugh Simpson Date: Thu, 7 Dec 2023 13:55:53 +0000 Subject: [PATCH] rm dead file --- .../slickpg/TypeTagSupportSuite.scala | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 core/src/test/scala/com/github/tminglei/slickpg/TypeTagSupportSuite.scala diff --git a/core/src/test/scala/com/github/tminglei/slickpg/TypeTagSupportSuite.scala b/core/src/test/scala/com/github/tminglei/slickpg/TypeTagSupportSuite.scala deleted file mode 100644 index 23dd125a..00000000 --- a/core/src/test/scala/com/github/tminglei/slickpg/TypeTagSupportSuite.scala +++ /dev/null @@ -1,23 +0,0 @@ -package com.github.tminglei.slickpg - -import izumi.reflect.Tag -import izumi.reflect.macrortti.LightTypeTag -import org.scalatest.funsuite.AnyFunSuite - -class TypeTagSupportSuite extends AnyFunSuite { - case class Foo(x: Int) - class Around { - case class Inner(y: String) - } - type AroundInner = Around#Inner - def classFromTypeTag(tag: LightTypeTag): Class[_] = { - val mungedRef = tag.ref.repr.replace("::", "$") - Class.forName(mungedRef) - } - test("class from type tag") { - classFromTypeTag(Tag[String].tag) === classOf[String] - classFromTypeTag(Tag[Foo].tag) === classOf[Foo] - classFromTypeTag(Tag[Around#Inner].tag) === classOf[Around#Inner] - classFromTypeTag(Tag[AroundInner].tag) === classOf[Around#Inner] - } -}