• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

BlueBrain / libsonata / 6959037227

22 Nov 2023 02:58PM UTC coverage: 93.271% (-0.7%) from 93.955%
6959037227

Pull #307

github

1uc
Implement `Hdf5Reader` API and default.

This commit introduces the API for an Hdf5Reader. This reader abstracts the
process of opening HDF5 files, and reading an `libsonata.Selection` from a
dataset.

The default reader calls the existing `_readSelection`.
Pull Request #307: Inject dataset reading via `Hdf5Reader`.

113 of 129 new or added lines in 11 files covered. (87.6%)

10 existing lines in 3 files now uncovered.

1885 of 2021 relevant lines covered (93.27%)

80.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/src/hdf5_reader.cpp
1
#include <bbp/sonata/hdf5_reader.h>
2

3
#include "hdf5_reader.hpp"
4

5
namespace bbp {
6
namespace sonata {
7

8

9
Hdf5Reader::Hdf5Reader()
72✔
10
    : impl(std::make_shared<
11
           Hdf5PluginDefault<Hdf5Reader::supported_1D_types, supported_2D_types>>()) {}
72✔
12

NEW
13
Hdf5Reader::Hdf5Reader(
×
NEW
14
    std::shared_ptr<Hdf5PluginInterface<supported_1D_types, supported_2D_types>> impl)
×
NEW
15
    : impl(std::move(impl)) {}
×
16

17
HighFive::File Hdf5Reader::openFile(const std::string& filename) const {
68✔
18
    return impl->openFile(filename);
68✔
19
}
20

21
}  // namespace sonata
22
}  // namespace bbp
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc