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

Unit test patch1 #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Unit test patch1 #8

wants to merge 1 commit into from

Conversation

josephaug26
Copy link
Contributor

unit test done for hash,delete,block,catalog,stub files
unit test pending for dedup and restore files*/

Signed-off-by: Ewen Pinto [email protected]

unit test done for hash,delete,block,catalog,stub files
unit test pending for dedup and restore files*/

Signed-off-by: Ewen Pinto <[email protected]>
@@ -76,6 +96,8 @@ get_block(int pos)

fstat(fd.fd_block, &st);
size = st.st_size;
REQUIRE(size>0);
check_expected(pos);
Copy link
Member

Choose a reason for hiding this comment

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

check_expected() calls are for mocked functions, not the real ones. Only the PBC functions (like REQUIRE, ENSURE, etc) are in the real functions.

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.

3 participants