API changes for code reusage in utbot-python and other languages #526
tamarinvs19
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are a lot of methods in the project that could be common for different languages but they depend on
UtMethod
andUtTestCase
(containsUtMethod
andJimpleBody
) which are designed only for Kotlin/Java. We would like them to be something like interfaces with different implementations for different languages.Because of this we cannot reuse almost anything from code generator.
CgContext
that must be initialized but for now we don't use mocking in Python. We would like them to be nullable (at least for now).classUnderTest: ClassId
that shouldn't be mandatory for Python (JS, Go).Another problem in API that we have found is the class
Instruction
fromCoverageApi.kt
. It needsclassName
but in Python a lot of functions are defined outside of classes. Probably there are other classes with the same issue.Beta Was this translation helpful? Give feedback.
All reactions