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

Symbolic engine dies trying analyze large enum with static initializer block (e.g. HttpStatusCode) #2439

Open
IlyaMuravjov opened this issue Jul 24, 2023 · 0 comments · May be fixed by #2441
Assignees
Labels
comp-symbolic-engine Issue is related to the symbolic execution engine ctg-bug Issue is a bug

Comments

@IlyaMuravjov
Copy link
Collaborator

Description

Symbolic engine is unable to generate any test for the following method in 60 seconds even when Mock everything outside the class mocking strategy is used and Mock static methods is enabled (HttpStatus class can be found here: HttpStatus.zip).

public HttpStatus methodUnderTest() {
    return HttpStatus.OK;
}

To Reproduce

Settings:

  • 100% Symbolic execution
  • Mock everything outside the class mocking strategy
  • Mock static methods enabled

Generate tests for methodUnderTest().

Expected behavior

One test is generated

Actual behavior

No tests are generated

@IlyaMuravjov IlyaMuravjov added the ctg-bug Issue is a bug label Jul 24, 2023
@IlyaMuravjov IlyaMuravjov added the comp-symbolic-engine Issue is related to the symbolic execution engine label Jul 24, 2023
@Damtev Damtev linked a pull request Jul 24, 2023 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-symbolic-engine Issue is related to the symbolic execution engine ctg-bug Issue is a bug
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants