mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 04:04:35 +02:00
19 lines
440 B
C++
19 lines
440 B
C++
#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<char[]>(n_modules*MODULE_N_BYTES);
|
|
auto metadata = make_shared<DetectorFrame>();
|
|
|
|
SFWriter writer("ignore.h5", n_frames, n_modules);
|
|
writer.write(metadata.get(), data.get());
|
|
writer.close_file();
|
|
|
|
// TODO: Write some test.
|
|
} |