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

Add few unit tests for the hashing component #7993

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

dreamer-dead
Copy link
Contributor

Hi!

While walking across the osquery project I tried to change some code in the hashing component.
But I believe that it would be better to land some tests first to be sure that I don't broke anything later.
So this PR contains only a few basic tests for hashing classes and functions.

PTAL.

@dreamer-dead dreamer-dead requested review from a team as code owners April 17, 2023 08:38
kHelloSHA256Digest);
}

TEST(HashingTests, test_hashing_md5) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test and others below can be done in form of for loop in a single test.
I can change it that way.

Copy link
Member

@zwass zwass left a comment

Choose a reason for hiding this comment

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

Thank you! We always appreciate test improvements!

@zwass zwass merged commit 22d9de1 into osquery:master Apr 17, 2023
15 checks passed
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.

None yet

2 participants