Skip to content

Fixed JavaScript UtContext error & removed annotation for framework outer classes #1687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions utbot-js/src/main/kotlin/framework/api/js/JsApi.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package framework.api.js

import java.lang.reflect.Modifier
import framework.api.js.util.toJsClassId
import org.utbot.framework.plugin.api.ClassId
import org.utbot.framework.plugin.api.ConstructorId
import org.utbot.framework.plugin.api.MethodId
import org.utbot.framework.plugin.api.UtModel
import framework.api.js.util.toJsClassId
import org.utbot.framework.plugin.api.primitiveModelValueToClassId
import java.lang.reflect.Modifier

open class JsClassId(
private val jsName: String,
Expand All @@ -19,6 +19,9 @@ open class JsClassId(
override val simpleName: String
get() = jsName

override val simpleNameWithEnclosingClasses: String
get() = jsName

override val allMethods: Sequence<JsMethodId>
get() = methods

Expand Down Expand Up @@ -119,4 +122,4 @@ data class JsPrimitiveModel(
}

private fun jsPrimitiveModelValueToClassId(value: Any) =
primitiveModelValueToClassId(value).toJsClassId()
primitiveModelValueToClassId(value).toJsClassId()
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class MochaManager(context: CgContext) : TestFrameworkManager(context) {
get() = TODO("Not yet implemented")
override val annotationForNestedClasses: CgAnnotation
get() = TODO("Not yet implemented")
override val annotationForOuterClasses: CgAnnotation
get() = TODO("Not yet implemented")

override fun assertEquals(expected: CgValue, actual: CgValue) {
+assertions[jsAssertEquals](expected, actual)
Expand Down