Add test for sf_writer

This commit is contained in:
2020-04-24 14:43:48 +02:00
parent 2033241fee
commit 4e55c70f48
2 changed files with 20 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#include "SFWriter.hpp"
#include "gtest/gtest.h"
using namespace core_buffer;
TEST(SFWriter, basic_interaction)
{
size_t n_modules = 2;
size_t n_frames = 5;
auto data = make_unique<uint16_t>(n_modules*MODULE_N_PIXELS);
SFWriter writer("ignore.h5", 10, n_modules);
writer.write(data, metadata);
writer.close_file();
}