Skip to content

Testing#13

Open
Sachin-A wants to merge 6 commits intomasterfrom
testing
Open

Testing#13
Sachin-A wants to merge 6 commits intomasterfrom
testing

Conversation

@Sachin-A
Copy link
Owner

@Sachin-A Sachin-A commented Jan 15, 2017

Uses Google tests for testing hashed output
Non fatal assertions are used so that all failed hashes are reported
Depends on PR #12 for building the tests
Enhancement for #4

@Sachin-A Sachin-A requested review from sooryan and removed request for sooryan January 15, 2017 12:31
Setup initialisation struct for test runs
Create test fixtures
Derive from ::testing::Test as public
SetUp() function to prepare objects for each test
Teardown() function to release any resources allocated
Array comparison to check hash value against known answer
Return ::testing::AssertionResult type on completion
Use Nonfatal assertions to get list of failed hashes
Declare blake2b extern "C" to facilitate linking
Add test fixture for keyed hashing with non fatal assertion
Add C headers by declaring them in extern "C" blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant