Skip to content

Generate test by fuzzing for methods with no parameters #511

Closed
@Markoutte

Description

@Markoutte

Description

Fuzzing should generate tests for methods without parameters. Usually, these methods have logic using internal object fields. For example:

public class NestedClasses {
    public int field;

    public boolean testObject() {
        if (field > 10) {
            return true;
        }
        return false;
    }
}

Expected behavior

Fuzzing should provide several test with values for a field (for example, 10 and 11).

Environment

This problem is bound to the fact that fuzzer uses simple creation of this object. For example, fuzzer uses reflection to create this instance when method's class doesn't have public empty constructor.

Potential alternatives

There's no alternatives

Metadata

Metadata

Assignees

Labels

comp-fuzzingIssue is related to the fuzzing

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions