File: TargetTest.cpp

package info (click to toggle)
pbdagcon 0.3%2Bgit20180411.c14c422%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,004 kB
  • sloc: ansic: 8,522; cpp: 7,747; python: 668; makefile: 197; sh: 130
file content (22 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <gtest/gtest.h>
#include <DazAlnProvider.hpp>

TEST(TargetTest, add_record) {
    Record r1, r2, r3;
    Overlap o1, o2, o3;

    o1.aread = 1; o1.bread = 3; o1.flags = 0;
    o2.aread = 1; o2.bread = 3; o2.flags = 0;
    o3.aread = 2; o3.bread = 3; o3.flags = 1;

    r1.ovl = o1;
    r2.ovl = o2;
    r3.ovl = o3;

    Target t;
    t.addRecord(r1);
    t.addRecord(r2);
    t.addRecord(r3);

    EXPECT_EQ(2, t.hits.size());
}