File tree Expand file tree Collapse file tree
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/tree Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package org.utbot.framework.codegen.model.tree
33import org.utbot.common.WorkaroundReason
44import org.utbot.common.workaround
55import org.utbot.framework.codegen.Import
6+ import org.utbot.framework.codegen.model.constructor.tree.CgUtilClassConstructor
67import org.utbot.framework.codegen.model.constructor.tree.TestsGenerationReport
78import org.utbot.framework.codegen.model.util.CgExceptionHandler
89import org.utbot.framework.codegen.model.visitor.CgRendererContext
@@ -149,6 +150,18 @@ sealed class AbstractCgClass<T : AbstractCgClassBody> : CgElement {
149150 get() = id.simpleName
150151}
151152
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+ */
152165class CgRegularClass (
153166 override val id : ClassId ,
154167 override val annotations : List <CgAnnotation >,
You can’t perform that action at this time.
0 commit comments