GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Calls to Kotlin autogenerated setter isn't changed to direct property access for tests from fuzzer · Issue #1241 · UnitTestBot/UTBotJava

Calls to Kotlin autogenerated setter isn't changed to direct property access for tests from fuzzer #1241

New issue
Copy link
New issue
Copy link
Closed
#1243
Closed
Calls to Kotlin autogenerated setter isn't changed to direct property access for tests from fuzzer#1241
#1243
Copy link
Assignees
volivan239
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorcomp-fuzzingIssue is related to the fuzzingIssue is related to the fuzzingctg-bugIssue is a bugIssue is a buglang-kotlinIssue is related to Kotlin language supportIssue is related to Kotlin language support

Description

@volivan239
volivan239
opened on Oct 26, 2022
Issue body actions

Description

Fixes from #1002 seems not to work properly if the model is produced by fuzzer.

To Reproduce

Launch action on the following class (use only fuzzer):

class Example() {
    var x: Int = 3
    fun f(): Int {
        return x
    }
}

Expected behavior

Tests are generated properly.

Actual behavior

Incorrect tests with calls to .setX() are generated.

Visual proofs (screenshots, logs, images)

Example of generated test:

@Test
@DisplayName("f: arg_0 = Example() -> return 1409199696")
fun testF() {
    val example = Example()
    example.setX(1409199696)
    
    val actual = example.f()
    
    assertEquals(1409199696, actual)
}

Environment

Test generation method -- Fuzzing 100%

Activity

  1. volivan239
    added
    ctg-bugIssue is a bugIssue is a bug
    comp-codegenIssue is related to code generatorIssue is related to code generator
    comp-fuzzingIssue is related to the fuzzingIssue is related to the fuzzing
    on Oct 26, 2022
  2. volivan239
    self-assigned this
    on Oct 26, 2022
  3. korifey
    added this to UTBot Javaon Oct 26, 2022
  4. korifey
    moved this to Todo in UTBot Javaon Oct 26, 2022
  5. alisevych
    added
    lang-kotlinIssue is related to Kotlin language supportIssue is related to Kotlin language support
    on Oct 28, 2022
  6. EgorkaKulikov
    closed this as completedin #1243on Nov 1, 2022
  7. EgorkaKulikov
    added a commit that references this issue on Nov 1, 2022

    Replace Kotlin setters with direct property access for models from Fu…

    95d503a
  8. Repository owner moved this from Todo to Done in UTBot Javaon Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @volivan239
    volivan239

Labels

comp-codegenIssue is related to code generatorIssue is related to code generatorcomp-fuzzingIssue is related to the fuzzingIssue is related to the fuzzingctg-bugIssue is a bugIssue is a buglang-kotlinIssue is related to Kotlin language supportIssue is related to Kotlin language support

Type

No type

Projects

  • UTBot Java
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.