Unit tests for hs_sparse_io.cpp (ModuleIO::save_sparse, both the compact layout and the csr_format text layout).
More...
|
| | TEST (HsSparseIo, SparseHeaderKeepsStepStyle) |
| | TEST (HsSparseIo, SparseTextCountsOnlyValuesAboveThreshold) |
| | TEST (HsSparseIo, SparseBinaryHeaderWritesConcreteStep) |
| | TEST (HsSparseIo, SparseBinaryCountsOnlyValuesAboveThreshold) |
| | TEST (HsSparseIo, SparseTextOutAppFlagZeroTruncatesSeededFile) |
| | TEST (HsSparseIo, SparseCsrHeaderWritesCellAndBanner) |
| | TEST (HsSparseIo, SparseCsrSkipsEmptyRBlocks) |
| | TEST (HsSparseIo, SparseCsrWritesComplexValues) |
| int | main (int argc, char **argv) |
Unit tests for hs_sparse_io.cpp (ModuleIO::save_sparse, both the compact layout and the csr_format text layout).
The tests pin down the legacy CSR text/binary layout written by save_sparse: header style ("Ionic_Step n"), dimension lines, threshold filtering of values, and the native binary field order. hs_sparse_io.cpp only reads GlobalV::DRANK, so the fixture sets it directly; no PARAM state is involved.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
◆ TEST() [1/8]
| TEST |
( |
HsSparseIo | , |
|
|
SparseBinaryCountsOnlyValuesAboveThreshold | ) |
◆ TEST() [2/8]
| TEST |
( |
HsSparseIo | , |
|
|
SparseBinaryHeaderWritesConcreteStep | ) |
◆ TEST() [3/8]
| TEST |
( |
HsSparseIo | , |
|
|
SparseCsrHeaderWritesCellAndBanner | ) |
◆ TEST() [4/8]
| TEST |
( |
HsSparseIo | , |
|
|
SparseCsrSkipsEmptyRBlocks | ) |
◆ TEST() [5/8]
| TEST |
( |
HsSparseIo | , |
|
|
SparseCsrWritesComplexValues | ) |
◆ TEST() [6/8]
| TEST |
( |
HsSparseIo | , |
|
|
SparseHeaderKeepsStepStyle | ) |
◆ TEST() [7/8]
| TEST |
( |
HsSparseIo | , |
|
|
SparseTextCountsOnlyValuesAboveThreshold | ) |
◆ TEST() [8/8]
| TEST |
( |
HsSparseIo | , |
|
|
SparseTextOutAppFlagZeroTruncatesSeededFile | ) |