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

Docs and Tests for I/O #105

Merged
merged 18 commits into from
May 20, 2022
Merged

Docs and Tests for I/O #105

merged 18 commits into from
May 20, 2022

Conversation

ardasener
Copy link
Contributor

This pr will add a test suite and documentation comments for the members of sparsebase::utils::io namespace. It also includes a number of fixes to the Reader/Writer classes.

The test suites involve writing hard coded mtx and edge list data into files and reading them using sparsebase's Reader classes, checking the integrity and dimensions of the data after the read.

BinaryReader and BinaryWriter classes were harder to test as the file format used is unique to sparsebase. These tests simply write some hard coded matrices to files and the read them back expecting the read matrix to be identical to the original one. Tests in the writer_tests.cc file are just copies of the ones in reader_tests.cc. This separate file is included to make future organization easier.

@ardasener ardasener added type: docs Related to documentation and information state: review needed type: fix Iterations on existing features or infrastructure. Optimizations, refactoring, etc. type: testing Related to testing labels May 19, 2022
@ardasener ardasener merged commit 76b6f13 into develop May 20, 2022
@ardasener ardasener deleted the feature/io_docs_tests branch May 20, 2022 06:12
SinanEkm pushed a commit that referenced this pull request Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: review needed type: docs Related to documentation and information type: fix Iterations on existing features or infrastructure. Optimizations, refactoring, etc. type: testing Related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants