Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniilStepanov committed Aug 9, 2023
1 parent f31ff3b commit 51d3360
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@file:Suppress("EXPERIMENTAL_API_USAGE","EXPERIMENTAL_UNSIGNED_LITERALS","PackageDirectoryMismatch","UnusedImport","unused","LocalVariableName","CanBeVal","PropertyName","EnumEntryName","ClassName","ObjectPropertyName","UnnecessaryVariable","SpellCheckingInspection")
@file:Suppress("EXPERIMENTAL_API_USAGE","EXPERIMENTAL_UNSIGNED_LITERALS","PackageDirectoryMismatch","UnusedImport","unused","LocalVariableName","CanBeVal","PropertyName","EnumEntryName","ClassName","ObjectPropertyName","UnnecessaryVariable","SpellCheckingInspection", "UNUSED_PARAMETER", "UNCHECKED_CAST")
package org.usvm.instrumentation.generated.models

import com.jetbrains.rd.framework.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@file:Suppress("EXPERIMENTAL_API_USAGE","EXPERIMENTAL_UNSIGNED_LITERALS","PackageDirectoryMismatch","UnusedImport","unused","LocalVariableName","CanBeVal","PropertyName","EnumEntryName","ClassName","ObjectPropertyName","UnnecessaryVariable","SpellCheckingInspection")
@file:Suppress("EXPERIMENTAL_API_USAGE","EXPERIMENTAL_UNSIGNED_LITERALS","PackageDirectoryMismatch","UnusedImport","unused","LocalVariableName","CanBeVal","PropertyName","EnumEntryName","ClassName","ObjectPropertyName","UnnecessaryVariable","SpellCheckingInspection", "UNUSED_PARAMETER", "UNCHECKED_CAST")
package org.usvm.instrumentation.generated.models

import com.jetbrains.rd.framework.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@file:Suppress("UNCHECKED_CAST")
package org.usvm.instrumentation.testcase.executor

import ReflectionUtils
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")

import org.usvm.instrumentation.util.`try`
import sun.misc.Unsafe
import java.lang.reflect.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ inline fun <T> asserted(condition: Boolean, action: () -> T): T {


@Suppress("ControlFlowWithEmptyBody")
inline fun ktassert(cond: Boolean) = if (!cond) throw AssertionException() else {}
fun ktassert(cond: Boolean) = if (!cond) throw AssertionException() else {}

class AssertionException(message: String) : KtException(message) {
constructor() : this("")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.usvm.instrumentation.executor

import org.junit.jupiter.api.AfterAll
import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.usvm.instrumentation.testcase.api.UTestExecutionExceptionResult
import org.usvm.instrumentation.testcase.api.UTestExecutionSuccessResult
Expand Down Expand Up @@ -156,6 +157,7 @@ class SimpleUTestConcreteExecutor: UTestConcreteExecutorTest() {
}

@Test
@Disabled("Better support for multiple mocks")
fun `multiple mock`() = executeTest {
val uTest = UTestCreator.A.mockMultiple(jcClasspath)
val res = uTestConcreteExecutor.executeAsync(uTest)
Expand Down

0 comments on commit 51d3360

Please sign in to comment.