File: HDFScanDataWriter_gtest.cpp

package info (click to toggle)
pbseqlib 5.3.5%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,148 kB
  • sloc: cpp: 77,259; python: 331; sh: 103; makefile: 41
file content (41 lines) | stat: -rw-r--r-- 996 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * ============================================================================
 *
 *       Filename:  HDFScanDataWriter_gtest.cpp
 *
 *    Description:  Test data/HDFScanDataWriter.hpp
 *
 *        Version:  1.0
 *        Created:  10/14/2013 03:04:00 PM
 *       Revision:  08/20/2014
 *       Compiler:  gcc
 *
 *         Author:  Yuan Li (yli), yli@pacificbiosciences.com
 *        Company:  Pacific Biosciences
 *
 * ============================================================================
 */

#include <gtest/gtest.h>

#define private public

#include <hdf/HDFFile.hpp>
#include <hdf/HDFScanDataWriter.hpp>
#include <pbdata/reads/ScanData.hpp>

TEST(HDFScanDataWriter, Write)
{
    ScanData sd;
    sd.frameRate = 100;
    sd.BaseMap("ATGC");

    HDFFile outFile;
    outFile.Open("scandata.h5", H5F_ACC_TRUNC);
    HDFScanDataWriter writer(outFile);
    writer.Write(sd);
    writer.WriteMovieName("xyz");
    writer.WriteFrameRate(70);
    writer.Close();
    outFile.Close();
}