#include "gtest/gtest.h"
#include "TrigHLTJetHypo/../src/JetGroupUnion.h"
#include <vector>
#include <map>
Go to the source code of this file.
|
using | res = std::pair< std::vector< unsigned int >, bool > |
|
using | vec = std::vector< unsigned int > |
|
|
| TEST (JetGroupUnionTester, empty) |
|
| TEST (JetGroupUnionTester, one_elementary_cond) |
|
| TEST (JetGroupUnionTester, two_elem_nooverlap) |
|
| TEST (JetGroupUnionTester, two_elem_withoverlap) |
|
◆ res
using res = std::pair<std::vector<unsigned int>, bool> |
◆ vec
using vec = std::vector<unsigned int> |
◆ TEST() [1/4]
TEST |
( |
JetGroupUnionTester |
, |
|
|
empty |
|
|
) |
| |
Definition at line 13 of file JetGroupUnionTest.cxx.
14 std::vector<std::size_t> siblings;
17 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
21 EXPECT_TRUE(jgu.next(collector).empty());
◆ TEST() [2/4]
TEST |
( |
JetGroupUnionTester |
, |
|
|
one_elementary_cond |
|
|
) |
| |
Definition at line 25 of file JetGroupUnionTest.cxx.
26 std::vector<std::size_t> siblings{0};
29 satisfiedBy[0] = std::vector<std::size_t> {0, 1, 2};
31 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
35 auto exp = std::vector<std::size_t>{0, 1, 2};
36 EXPECT_EQ(jgu.next(collector),
exp);
37 EXPECT_TRUE(jgu.next(collector).empty());
◆ TEST() [3/4]
TEST |
( |
JetGroupUnionTester |
, |
|
|
two_elem_nooverlap |
|
|
) |
| |
Definition at line 41 of file JetGroupUnionTest.cxx.
42 std::vector<std::size_t> siblings{0, 1};
45 satisfiedBy[0] = std::vector<std::size_t> {0, 1, 2};
46 satisfiedBy[1] = std::vector<std::size_t> {3, 4, 5};
47 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
51 auto exp = std::vector<std::size_t>{0, 1, 2, 3, 4, 5};
52 EXPECT_EQ(jgu.next(collector),
exp);
53 EXPECT_TRUE(jgu.next(collector).empty());
◆ TEST() [4/4]
TEST |
( |
JetGroupUnionTester |
, |
|
|
two_elem_withoverlap |
|
|
) |
| |
Definition at line 56 of file JetGroupUnionTest.cxx.
57 std::vector<std::size_t> siblings{0, 1};
60 satisfiedBy[0] = std::vector<std::size_t> {0, 1, 2};
61 satisfiedBy[1] = std::vector<std::size_t> {3, 1, 5};
63 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
67 auto exp = std::vector<std::size_t>{0, 1, 2, 3, 5};
68 EXPECT_EQ(jgu.next(collector),
exp);
69 EXPECT_TRUE(jgu.next(collector).empty());