File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package org.utbot.framework.codegen.model.tree
3
3
import org.utbot.common.WorkaroundReason
4
4
import org.utbot.common.workaround
5
5
import org.utbot.framework.codegen.Import
6
+ import org.utbot.framework.codegen.model.constructor.tree.CgUtilClassConstructor
6
7
import org.utbot.framework.codegen.model.constructor.tree.TestsGenerationReport
7
8
import org.utbot.framework.codegen.model.util.CgExceptionHandler
8
9
import org.utbot.framework.codegen.model.visitor.CgRendererContext
@@ -149,6 +150,18 @@ sealed class AbstractCgClass<T : AbstractCgClassBody> : CgElement {
149
150
get() = id.simpleName
150
151
}
151
152
153
+ /* *
154
+ * This class represents any class that we may want to generate other than the test class.
155
+ * At the moment the only such case is the generation of util class UtUtils.
156
+ *
157
+ * The difference with [CgTestClass] is in the body.
158
+ * The structure of a test class body is fixed (we know what it should contain),
159
+ * whereas an arbitrary class could contain anything.
160
+ * For example, the body of UtUtils class contains a comment with information
161
+ * about the version of UTBot it was generated with, and all the util methods.
162
+ *
163
+ * @see CgUtilClassConstructor
164
+ */
152
165
class CgRegularClass (
153
166
override val id : ClassId ,
154
167
override val annotations : List <CgAnnotation >,
You can’t perform that action at this time.
0 commit comments