-
Notifications
You must be signed in to change notification settings - Fork 66
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
build: Add tests for fetch using passing arguments #115
Conversation
- The fetchUser passing pointer had another struct which was not necessarily needed - Removed PersonalInfo as it was not needed wrt the testcase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, thank you for doing this! Left some comments for things to improve.
- For negative test cases, test cases have been skipped for now. - For passing test cases, a helper method has been added to validate output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor requests thank you!
Maybe we can use |
Yep I was thinking of doing it in the follow up PR once this goes in. I am not sure how to use those methods, at the end of the README there were some examples but didn't really help. |
We should wait for the unmarshal improvements before merging this. Appreciate the patience and diligence 👍 |
add smartUnmarshal as helper in fetch tests
opened a PR to @sbshah97 's repo sbshah97#1 for unmarshal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments but its nearly ready :)
remove validateFriends
Code Review comments suggestions added Co-authored-by: Przemyslaw Hugh Kaznowski <[email protected]>
…go into dev/sbshah97/db_test
@phughk could you review this again? |
Looks good. Thanks @sbshah97 !. Merging it. |
Added 5 different test cases to test the fetch functionality.
The remaining tests need to be changed once the functionality is fixed at the root source
Closes #40