Skip to content

Avoid creating pseudo variable for expected result in parametrized test #641

Closed
@EgorkaKulikov

Description

@EgorkaKulikov

Description

Code generation for parametrized tests contains the following hack:

val pseudoExceptionVarName = when (codegenLanguage) {
      CodegenLanguage.JAVA -> "${expectedErrorVarName}.isInstance(${e.name.decapitalize()})"
      CodegenLanguage.KOTLIN -> "${expectedErrorVarName}!!.isInstance(${e.name.decapitalize()})"
  }

Expected behavior

All variables are created with newVar or declareVariable methods.

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorctg-refactoringIssue related to refactoring process

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions