Skip to content
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

Provide references to invoked methods in summary #476

Merged
merged 4 commits into from
Jul 18, 2022
Merged

Conversation

onewhl
Copy link
Member

@onewhl onewhl commented Jul 11, 2022

Description

Provide references to invoked methods in summary to make it possible to navigate to them by click.
Fixes #462

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Automated Testing

I fixed the tests affected by the change and added them to this PR.

Manual Scenario

I ran the plugin on several code snippets to make sure that the links the plugin shows are correct.

Checklist (remove irrelevant options):

  • 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
  • Tests that prove my change is effective
  • All tests pass locally with my changes

@onewhl onewhl requested a review from amandelpie July 11, 2022 09:25
@onewhl onewhl added the comp-summaries Something related to the method names, code comments and display names generation label Jul 11, 2022
@onewhl onewhl force-pushed the onewhl/462-links branch from 4e28dc0 to aad94ba Compare July 17, 2022 20:50
*/
protected fun invokeDescription(className: String, methodName: String) = "$className::$methodName" //TODO SAT-1311
protected fun invokeDescription(className: String, methodName: String, methodParameterTypes: List<Type>): String {
Copy link
Collaborator

@amandelpie amandelpie Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a simple note for the future (let's cover this functionality with the unit tests located in the summary module itself)
I'm going to merge first test with DBSCAN #345 issue and you could create a ticket to cover it with the unit functionality without test generation from scratch.

I suggest to cover all known builders, it will be easier to see if something broken there. Also you could use UTBot or Fuzzer to generate these unit tests @onewhl

Copy link
Member Author

@onewhl onewhl Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds awesome, I've created a separate ticket for it: #543

Copy link
Collaborator

@amandelpie amandelpie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for me

@onewhl onewhl merged commit f5534cd into main Jul 18, 2022
@onewhl onewhl deleted the onewhl/462-links branch July 18, 2022 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-summaries Something related to the method names, code comments and display names generation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Provide references to invoked methods in summary
2 participants