Skip to content

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

Open
@IlyaMuravjov

Description

@IlyaMuravjov

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

Metadata

Metadata

Assignees

Labels

comp-symbolic-engineIssue is related to the symbolic execution enginectg-bugIssue is a bug

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions