Skip to content

Add support for nested classes to UI #649 #726

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

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

volivan239
Copy link
Collaborator

@volivan239 volivan239 commented Aug 15, 2022

Description

Changed the behavior of plugin on classes with nested classes. Now, when launching UTBot for a class, its nested classes will be shown in dialog (in addition to its methods). This behavior holds both when launching from editor and from 'Project' tool window.

Fixes #649

Type of Change

  • Minor bug fix (non-breaking small changes)

How Has This Been Tested?

Manual Scenario

Launch UTBot from different scopes of the class below (both from editor and from 'Project' tool window) -- should work as expected.

public class SomeClass {
    public class InnerClass {
        private int y;
        InnerClass(int y) {
            this.y = y;
        }
        public class DeepInner {
            public int f() {
                if (y == 1) return 1;
                return 2;
            }
        }
        public int g() {
            return 2;
        }
    }
    public int h() {
        return 3;
    }
}

Checklist (remove irrelevant options):

This is the author self-check list

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@volivan239 volivan239 changed the title Add nested class to UI Add support for nested classes to UI Aug 15, 2022
@volivan239 volivan239 force-pushed the volivan239/support_for_nested_class_in_ui branch from 7f195ef to 214703c Compare August 16, 2022 12:51
@volivan239 volivan239 force-pushed the volivan239/support_for_nested_class_in_ui branch 2 times, most recently from 58cccea to 7effc0d Compare August 29, 2022 16:49
@volivan239 volivan239 force-pushed the volivan239/support_for_nested_class_in_ui branch from 7effc0d to e5bcaab Compare August 29, 2022 16:51
@volivan239 volivan239 marked this pull request as ready for review August 29, 2022 16:52
@volivan239 volivan239 changed the title Add support for nested classes to UI Add support for nested classes to UI #649 Aug 30, 2022
@volivan239 volivan239 merged commit 309be9f into main Aug 30, 2022
@volivan239 volivan239 deleted the volivan239/support_for_nested_class_in_ui branch August 30, 2022 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Generate tests for methods from nested/inner classes in plugin
2 participants