Skip to content

Commit

Permalink
Remove internal package object
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Apr 9, 2022
1 parent ee265eb commit 9ea90ef
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 16 deletions.
4 changes: 4 additions & 0 deletions munit/js/src/main/scala/munit/internal/PlatformCompat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ object PlatformCompat {
private var myClassLoader: ClassLoader = _
def setThisClassLoader(loader: ClassLoader): Unit = myClassLoader = loader
def getThisClassLoader: ClassLoader = myClassLoader

type InvocationTargetException = munit.internal.InvocationTargetException
type UndeclaredThrowableException =
munit.internal.UndeclaredThrowableException
}
4 changes: 4 additions & 0 deletions munit/jvm/src/main/scala/munit/internal/PlatformCompat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,8 @@ object PlatformCompat {
def isJS: Boolean = false
def isNative: Boolean = false
def getThisClassLoader: ClassLoader = this.getClass().getClassLoader()

type InvocationTargetException = java.lang.reflect.InvocationTargetException
type UndeclaredThrowableException =
java.lang.reflect.UndeclaredThrowableException
}
7 changes: 0 additions & 7 deletions munit/jvm/src/main/scala/munit/internal/package.scala

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ object PlatformCompat {
private var myClassLoader: ClassLoader = _
def setThisClassLoader(loader: ClassLoader): Unit = myClassLoader = loader
def getThisClassLoader: ClassLoader = myClassLoader

type InvocationTargetException = java.lang.reflect.InvocationTargetException
type UndeclaredThrowableException =
java.lang.reflect.UndeclaredThrowableException
}
7 changes: 0 additions & 7 deletions munit/native/src/main/scala/munit/internal/package.scala

This file was deleted.

4 changes: 2 additions & 2 deletions munit/shared/src/main/scala/munit/MUnitRunner.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package munit

import munit.internal.FutureCompat._
import munit.internal.InvocationTargetException
import munit.internal.PlatformCompat.InvocationTargetException
import munit.internal.PlatformCompat
import munit.internal.UndeclaredThrowableException
import munit.internal.PlatformCompat.UndeclaredThrowableException
import munit.internal.console.Printers
import munit.internal.console.StackTraces
import munit.internal.junitinterface.Configurable
Expand Down

0 comments on commit 9ea90ef

Please sign in to comment.