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

IEP-982 Test coverage for HintsUtil #791

Merged
merged 1 commit into from
Jul 18, 2023
Merged

IEP-982 Test coverage for HintsUtil #791

merged 1 commit into from
Jul 18, 2023

Conversation

sigmaaa
Copy link
Collaborator

@sigmaaa sigmaaa commented Jul 7, 2023

Description

added test coverage for HintsUtil class

Fixes # (IEP-982)

Type of change

Please delete options that are not relevant.

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

How has this been tested?

  • run tests

Test Configuration:

  • ESP-IDF Version:
  • OS (Windows,Linux and macOS):

Dependent components impacted by this PR:

  • tests

Checklist

  • PR Self Reviewed
  • Applied Code formatting
  • Added Documentation
  • Added Unit Test
  • Verified on all platforms - Windows,Linux and macOS

Copy link
Collaborator Author

@sigmaaa sigmaaa left a comment

Choose a reason for hiding this comment

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

self review


File hintsYmFile = new File(getHintsYmlPath());
public static List<ReHintPair> getReHintsList(File hintsYmFile)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

had to change the API for testing

@Test
void getReHintsList_returns_correct_parsed_list()
{
final String expectedFirstHint = "The parameter type of the function esp_secure_boot_read_key_digests() has been changed from ets_secure_boot_key_digests_t* to esp_secure_boot_key_digests_t*.";
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

such a long string doesn't look pretty but maybe is acceptable in test classes. Or we could introduce Activator for the test plugin and introduce a messages class for such test string

Copy link
Collaborator

@kolipakakondal kolipakakondal left a comment

Choose a reason for hiding this comment

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

LGTM

@kolipakakondal kolipakakondal merged commit 4683411 into master Jul 18, 2023
6 checks passed
@kolipakakondal kolipakakondal deleted the IEP-982 branch May 10, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants