#include "CxxUtils/checker_macros.h"
#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 16 of file JetGroupUnionTest.cxx.
17 std::vector<std::size_t> siblings;
20 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
24 EXPECT_TRUE(jgu.next(collector).empty());
◆ TEST() [2/4]
TEST |
( |
JetGroupUnionTester |
, |
|
|
one_elementary_cond |
|
|
) |
| |
Definition at line 28 of file JetGroupUnionTest.cxx.
29 std::vector<std::size_t> siblings{0};
32 satisfiedBy[0] = std::vector<std::size_t> {0, 1, 2};
34 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
38 auto exp = std::vector<std::size_t>{0, 1, 2};
39 EXPECT_EQ(jgu.next(collector),
exp);
40 EXPECT_TRUE(jgu.next(collector).empty());
◆ TEST() [3/4]
TEST |
( |
JetGroupUnionTester |
, |
|
|
two_elem_nooverlap |
|
|
) |
| |
Definition at line 44 of file JetGroupUnionTest.cxx.
45 std::vector<std::size_t> siblings{0, 1};
48 satisfiedBy[0] = std::vector<std::size_t> {0, 1, 2};
49 satisfiedBy[1] = std::vector<std::size_t> {3, 4, 5};
50 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
54 auto exp = std::vector<std::size_t>{0, 1, 2, 3, 4, 5};
55 EXPECT_EQ(jgu.next(collector),
exp);
56 EXPECT_TRUE(jgu.next(collector).empty());
◆ TEST() [4/4]
TEST |
( |
JetGroupUnionTester |
, |
|
|
two_elem_withoverlap |
|
|
) |
| |
Definition at line 59 of file JetGroupUnionTest.cxx.
60 std::vector<std::size_t> siblings{0, 1};
63 satisfiedBy[0] = std::vector<std::size_t> {0, 1, 2};
64 satisfiedBy[1] = std::vector<std::size_t> {3, 1, 5};
66 auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(
nullptr);
70 auto exp = std::vector<std::size_t>{0, 1, 2, 3, 5};
71 EXPECT_EQ(jgu.next(collector),
exp);
72 EXPECT_TRUE(jgu.next(collector).empty());
◆ ATLAS_NO_CHECK_FILE_THREAD_SAFETY
ATLAS_NO_CHECK_FILE_THREAD_SAFETY |