Skip to content

Duplication of interesting classes in context sent to the LLM #501

@vsantele

Description

@vsantele

Involved Module

  • UI
  • EvoSuite
  • LLM
  • Kex
  • Other (please explain)

Describe the bug

If the same class is retrieved as an "interesting class" several times, several occurrences of the class will be present in the final context despite the MutableSet used.

To Reproduce

Steps to reproduce the behavior:

  1. Open a class with several methods which use the same other class
  2. Generate tests for the class.
  3. Go to the idea.log to see the prompt.
  4. The "other" class appears several times in the prompt.

Expected behavior

If the "other" class is present several times, only one occurrence of the method signature must be present in the final prompt.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions