Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed source file for nested class #1359

Closed
amandelpie opened this issue Nov 14, 2022 · 1 comment · Fixed by #1447
Closed

Missed source file for nested class #1359

amandelpie opened this issue Nov 14, 2022 · 1 comment · Fixed by #1447
Assignees
Labels
comp-rd Issue is related RD ctg-bug Issue is a bug

Comments

@amandelpie
Copy link
Collaborator

amandelpie commented Nov 14, 2022

Description

Summarization for nested classes are not generated due to the not found source file in the call
Instrumenter.adapter.computeSourceFileByClass(this.method.classId.jClass, searchDirectory)

File not found, nothing to parse as a result the summaries are not generated.

To Reproduce

  1. Run the snippet of code in IntelliJ Idea
  2. Run plugin via runIde
  3. Disable Fuzzing in the Settings Panel (Fuzzing = 0 %, Symbolic = 100 %)
  4. Use plugin to generate tests
  5. Set breakpoint at the RdInstrumenterKt:33
  6. See, that the source file is not found.

Code for test generation:

public class DeepNested {
    public class Nested1 {
        public class Nested2 {
            public int f(int i) {
                if (i > 0) {
                    return 10;
                }
                return 0;
            }
        }
    }
}

Expected behavior

Source file should not be empty.

Actual behavior

Source file is not found

Visual proofs (screenshots, logs, images)

image

Additional context

Related to the #710

@amandelpie amandelpie added the ctg-bug Issue is a bug label Nov 14, 2022
@korifey korifey moved this to Todo in UTBot Java Nov 14, 2022
@amandelpie amandelpie added the comp-rd Issue is related RD label Nov 14, 2022
@Domonion Domonion self-assigned this Nov 21, 2022
@alisevych alisevych added this to the 2022.12 Release milestone Nov 21, 2022
@amandelpie
Copy link
Collaborator Author

@Domonion could you please have a look?

Domonion added a commit that referenced this issue Dec 1, 2022
1. fixes #1359
2. changes log formatting in IDEA process
Domonion added a commit that referenced this issue Dec 1, 2022
1. fixes #1359
2. changes log formatting in IDEA process
Domonion added a commit that referenced this issue Dec 1, 2022
1. fixes #1359
2. changes log formatting in IDEA process
Domonion added a commit that referenced this issue Dec 2, 2022
[rd & logs]
1. fixes #1359
2. changes log formatting in IDEA process
Repository owner moved this from Todo to Done in UTBot Java Dec 2, 2022
tamarinvs19 pushed a commit that referenced this issue Dec 6, 2022
[rd & logs]
1. fixes #1359
2. changes log formatting in IDEA process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-rd Issue is related RD ctg-bug Issue is a bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants