Incorrect types in execution lead to compilation errors

Open
#163 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

bug

Run ContestEstimator with the following options:

timeLimit = 30
methodFilter = "com.google.common.base.CaseFormat.*"
projectFilter = listOf("guava-26.0")

There are the following compilation errors:

Compilation errors: C:\UtBotJava\UTBotJava\utbot-junit-contest\build\output\test_candidates\guava-26.0\com\google\common\base\CaseFormatTest.java:418: error: incompatible types: Object cannot be converted to CaseFormat
        CaseFormat sourceFormatMock = mock(anonymousCaseFormatClazz);

or

 Compilation errors: C:\UtBotJava\UTBotJava\utbot-junit-contest\build\output\test_candidates\guava-26.0\com\google\common\base\CaseFormatTest.java:63: error: incompatible types: String cannot be converted to Throwable
        (when((((Throwable) stringMock)).getCause())).thenReturn(((Throwable) null));

Run ContestEstimator with the following options:

timeLimit = 30
methodFilter = "com.google.common.collect.Queues.*"
projectFilter = listOf("guava-26.0")

There are the following compilation errors: https://github.com/UnitTestBot/usvm/issues/144

Dominant language
Kotlin
Stars
33
Forks
27
Avg merge
4d 3h
Merged PRs (30d)
15

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UnitTestBot/usvm

All issues in UnitTestBot/usvm

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.