Skip to content

ModificationTransformationMode.ReadAndWrite misses some field reads #2502

Description

@IlyaMuravjov

Description

Newly introduced in #2444 ModificationTransformationMode.ReadAndWrite misses some field usages.

To Reproduce

Evaluate the following while generating tests for spring-petclinic.

UtBotFieldsModificatorsSearcher(
    modificationTransformationMode = ModificationTransformationMode.ReadAndWrite
).also {
    it.update(setOf(ClassId("org.springframework.samples.petclinic.owner.OwnerController"))) 
}.getModificatorToFields(analysisMode = AnalysisMode.Methods)

Expected behavior

For method processCreationForm usage of field owners is found.

Actual behavior

No field usages are found for method processCreationForm.

Visual proofs (screenshots, logs, images)

image

Metadata

Metadata

Assignees

Labels

comp-springIssue is related to Spring projects supportctg-bugIssue is a bug

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions