Skip to content

Commit

Permalink
fix: linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Jun 14, 2024
1 parent b5f7a71 commit 9e04927
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/silo/config/util/abstract_config_source.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
Expand Down
6 changes: 6 additions & 0 deletions src/silo/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ BitmapSizePerSymbol Database::calculateBitmapSizePerSymbol(
return global_bitmap_size_per_symbol;
}

namespace {

void addStatisticToBitmapContainerSize(
const RoaringStatistics& statistic,
BitmapContainerSizeStatistic& size_statistic
Expand All @@ -259,6 +261,8 @@ void addStatisticToBitmapContainerSize(
statistic.n_values_bitset_containers;
}

}

template <typename SymbolType>
BitmapContainerSize Database::calculateBitmapContainerSizePerGenomeSection(
const SequenceStore<SymbolType>& seq_store,
Expand Down Expand Up @@ -474,6 +478,7 @@ void Database::saveDatabaseState(const std::filesystem::path& save_directory) {
data_version_.saveToFile(data_version_file);
}

namespace {
DataVersion loadDataVersion(const std::filesystem::path& filename) {
if (!std::filesystem::is_regular_file(filename)) {
auto error = fmt::format("Input file {} could not be opened.", filename.string());
Expand All @@ -489,6 +494,7 @@ DataVersion loadDataVersion(const std::filesystem::path& filename) {
}
return data_version.value();
}
}

Database Database::loadDatabaseState(const std::filesystem::path& save_directory) {
Database database;
Expand Down
2 changes: 2 additions & 0 deletions src/silo/storage/position.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using silo::Nucleotide;
using silo::Position;

namespace {
void serializeToFile(const std::string& filename, const Position<Nucleotide>& position) {
std::ofstream output_file(filename.c_str(), std::ios::binary);
::boost::archive::binary_oarchive output_archive(output_file);
Expand All @@ -27,6 +28,7 @@ void deserializeFromFile(const std::string& filename, Position<Nucleotide>& posi
input_archive >> position;
input_file.close();
}
}

TEST(Position, flipsMostNumerousCorrectlyFromInitiallyUnoptimized) {
Position<Nucleotide> under_test;
Expand Down

0 comments on commit 9e04927

Please sign in to comment.