Skip to content

Commit

Permalink
blockreader_tests.rs add test_BlockReader_summary_empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Mar 25, 2023
1 parent 0805c8b commit 7f3911b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/tests/blockreader_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1348,3 +1348,19 @@ fn test_file_offset_at_block_offset_index() {
assert_eq!(13, BlockReader::file_offset_at_block_offset_index(3, 4, 1));
assert_eq!(17, BlockReader::file_offset_at_block_offset_index(4, 4, 1));
}

/// test `BlockReader::summary` before doing any processing
#[test_case(&NTF_LOG_EMPTY_FPATH, FileType::File, 2)]
#[test_case(&NTF_1BYTE_FPATH, FileType::File, 2)]
fn test_BlockReader_summary_empty(
path: &FPath,
filetype: FileType,
blocksz: BlockSz,
) {
let blockreader = new_BlockReader(
path, filetype, blocksz
);
_ = blockreader.summary();
}

// TODO: [2023/03/23] test `BlockReader::summary` after doing some processing

0 comments on commit 7f3911b

Please sign in to comment.