PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <cstdint>
#include <map>
#include <stdexcept>
#include <thread>
#include <type_traits>
#include <vector>
#include "catch2/catch_test_macros.hpp"
#include "podio/EventStore.h"
#include "podio/GenericParameters.h"
#include "podio/ROOTFrameReader.h"
#include "podio/ROOTLegacyReader.h"
#include "podio/ROOTReader.h"
#include "podio/podioVersion.h"
#include "datamodel/EventInfoCollection.h"
#include "datamodel/ExampleClusterCollection.h"
#include "datamodel/ExampleForCyclicDependency1Collection.h"
#include "datamodel/ExampleForCyclicDependency2Collection.h"
#include "datamodel/ExampleHitCollection.h"
#include "datamodel/ExampleWithOneRelationCollection.h"
#include "datamodel/ExampleWithUserInitCollection.h"
#include "datamodel/ExampleWithVectorMemberCollection.h"
#include "datamodel/MutableExampleWithComponent.h"
#include "podio/UserDataCollection.h"
Go to the source code of this file.
Typedefs | |
template<typename T > | |
using | GPGetValue = decltype(std::declval< podio::GenericParameters >().getValue< T >(std::declval< std::string >())) |
Functions | |
TEST_CASE ("AutoDelete", "[basics][memory-management]") | |
TEST_CASE ("Basics", "[basics][memory-management]") | |
TEST_CASE ("Assignment-operator ref count", "[basics][memory-management]") | |
TEST_CASE ("Clearing", "[ASAN-FAIL][THREAD-FAIL][basics][memory-management]") | |
TEST_CASE ("Cloning", "[basics][memory-management]") | |
TEST_CASE ("Component", "[basics]") | |
TEST_CASE ("Cyclic", "[LEAK-FAIL][basics][relations][memory-management]") | |
TEST_CASE ("Invalid_refs", "[LEAK-FAIL][basics][relations]") | |
TEST_CASE ("Looping", "[basics]") | |
TEST_CASE ("Notebook", "[basics]") | |
TEST_CASE ("OneToOneRelations", "[basics][relations]") | |
TEST_CASE ("Podness", "[basics][code-gen]") | |
TEST_CASE ("Referencing", "[basics][relations]") | |
TEST_CASE ("VariadicCreate", "[basics]") | |
TEST_CASE ("write_buffer", "[basics][io]") | |
TEST_CASE ("thread-safe prepareForWrite", "[basics][multithread]") | |
TEST_CASE ("Extracode", "[basics][code-gen]") | |
TEST_CASE ("AssociativeContainer", "[basics]") | |
TEST_CASE ("Equality", "[basics]") | |
TEST_CASE ("UserInitialization", "[basics][code-gen]") | |
TEST_CASE ("NonPresentCollection", "[basics][event-store]") | |
TEST_CASE ("const correct indexed access to const collections", "[const-correctness]") | |
TEST_CASE ("const correct indexed access to collections", "[const-correctness]") | |
TEST_CASE ("const correct iterators on const collections", "[const-correctness]") | |
TEST_CASE ("const correct iterators on collections", "[const-correctness]") | |
TEST_CASE ("Subset collection basics", "[subset-colls]") | |
TEST_CASE ("Subset collection can handle subsets", "[subset-colls]") | |
TEST_CASE ("Collection iterators work with subset collections", "[LEAK-FAIL][subset-colls]") | |
TEST_CASE ("Canont convert a normal collection into a subset collection", "[subset-colls]") | |
TEST_CASE ("Cannot convert a subset collection into a normal collection", "[subset-colls]") | |
TEST_CASE ("Subset collection only handles tracked objects", "[subset-colls]") | |
auto | createCollections (const size_t nElements=3u) |
void | checkCollections (ExampleHitCollection &hits, ExampleClusterCollection &clusters, ExampleWithVectorMemberCollection &vectors, podio::UserDataCollection< float > &userData, const size_t nElements=3u) |
TEST_CASE ("Move-only collections", "[collections][move-semantics]") | |
TEST_CASE ("Version tests", "[versioning]") | |
TEST_CASE ("Preprocessor version tests", "[versioning]") | |
TEST_CASE ("GenericParameters", "[generic-parameters]") | |
TEST_CASE ("GenericParameters constructors", "[generic-parameters]") | |
TEST_CASE ("GenericParameters return types", "[generic-parameters][static-checks]") | |
TEST_CASE ("Missing files (ROOT readers)", "[basics]") | |
using GPGetValue = decltype(std::declval<podio::GenericParameters>().getValue<T>(std::declval<std::string>())) |
Definition at line 1037 of file unittest.cpp.
void checkCollections | ( | ExampleHitCollection & | hits, |
ExampleClusterCollection & | clusters, | ||
ExampleWithVectorMemberCollection & | vectors, | ||
podio::UserDataCollection< float > & | userData, | ||
const size_t | nElements = 3u |
||
) |
Definition at line 643 of file unittest.cpp.
Referenced by TEST_CASE().
auto createCollections | ( | const size_t | nElements = 3u | ) |
Definition at line 608 of file unittest.cpp.
Referenced by TEST_CASE().
TEST_CASE | ( | "Assignment-operator ref count" | , |
"" | [basics][memory-management] | ||
) |
Definition at line 60 of file unittest.cpp.
TEST_CASE | ( | "AssociativeContainer" | , |
"" | [basics] | ||
) |
Definition at line 350 of file unittest.cpp.
TEST_CASE | ( | "AutoDelete" | , |
"" | [basics][memory-management] | ||
) |
Definition at line 36 of file unittest.cpp.
TEST_CASE | ( | "Basics" | , |
"" | [basics][memory-management] | ||
) |
Definition at line 46 of file unittest.cpp.
TEST_CASE | ( | "Cannot convert a subset collection into a normal collection" | , |
"" | [subset-colls] | ||
) |
Definition at line 587 of file unittest.cpp.
TEST_CASE | ( | "Canont convert a normal collection into a subset collection" | , |
"" | [subset-colls] | ||
) |
Definition at line 580 of file unittest.cpp.
TEST_CASE | ( | "Clearing" | , |
"" | [ASAN-FAIL][THREAD-FAIL][basics][memory-management] | ||
) |
Definition at line 77 of file unittest.cpp.
TEST_CASE | ( | "Cloning" | , |
"" | [basics][memory-management] | ||
) |
Definition at line 106 of file unittest.cpp.
TEST_CASE | ( | "Collection iterators work with subset collections" | , |
"" | [LEAK-FAIL][subset-colls] | ||
) |
Definition at line 557 of file unittest.cpp.
TEST_CASE | ( | "Component" | , |
"" | [basics] | ||
) |
Definition at line 126 of file unittest.cpp.
TEST_CASE | ( | "const correct indexed access to collections" | , |
"" | [const -correctness] | ||
) |
Definition at line 435 of file unittest.cpp.
TEST_CASE | ( | "const correct indexed access to const collections" | , |
"" | [const -correctness] | ||
) |
Definition at line 426 of file unittest.cpp.
TEST_CASE | ( | "const correct iterators on collections" | , |
"" | [const -correctness] | ||
) |
Definition at line 478 of file unittest.cpp.
TEST_CASE | ( | "const correct iterators on const collections" | , |
"" | [const -correctness] | ||
) |
Definition at line 452 of file unittest.cpp.
TEST_CASE | ( | "Cyclic" | , |
"" | [LEAK-FAIL][basics][relations][memory-management] | ||
) |
Definition at line 132 of file unittest.cpp.
TEST_CASE | ( | "Equality" | , |
"" | [basics] | ||
) |
Definition at line 385 of file unittest.cpp.
TEST_CASE | ( | "Extracode" | , |
"" | [basics][code-gen] | ||
) |
Definition at line 338 of file unittest.cpp.
TEST_CASE | ( | "GenericParameters constructors" | , |
"" | [generic-parameters] | ||
) |
Definition at line 992 of file unittest.cpp.
TEST_CASE | ( | "GenericParameters return types" | , |
"" | [generic-parameters][static-checks] | ||
) |
Definition at line 1039 of file unittest.cpp.
TEST_CASE | ( | "GenericParameters" | , |
"" | [generic-parameters] | ||
) |
Definition at line 925 of file unittest.cpp.
TEST_CASE | ( | "Invalid_refs" | , |
"" | [LEAK-FAIL][basics][relations] | ||
) |
Definition at line 148 of file unittest.cpp.
TEST_CASE | ( | "Looping" | , |
"" | [basics] | ||
) |
Definition at line 160 of file unittest.cpp.
TEST_CASE | ( | "Missing files (ROOT readers)" | , |
"" | [basics] | ||
) |
Definition at line 1053 of file unittest.cpp.
TEST_CASE | ( | "Move-only collections" | , |
"" | [collections][move-semantics] | ||
) |
Definition at line 717 of file unittest.cpp.
TEST_CASE | ( | "NonPresentCollection" | , |
"" | [basics][event-store] | ||
) |
Definition at line 421 of file unittest.cpp.
TEST_CASE | ( | "Notebook" | , |
"" | [basics] | ||
) |
Definition at line 187 of file unittest.cpp.
TEST_CASE | ( | "OneToOneRelations" | , |
"" | [basics][relations] | ||
) |
Definition at line 208 of file unittest.cpp.
TEST_CASE | ( | "Podness" | , |
"" | [basics][code-gen] | ||
) |
Definition at line 216 of file unittest.cpp.
TEST_CASE | ( | "Preprocessor version tests" | , |
"" | [versioning] | ||
) |
Definition at line 883 of file unittest.cpp.
TEST_CASE | ( | "Referencing" | , |
"" | [basics][relations] | ||
) |
Definition at line 228 of file unittest.cpp.
TEST_CASE | ( | "Subset collection basics" | , |
"" | [subset-colls] | ||
) |
Definition at line 508 of file unittest.cpp.
TEST_CASE | ( | "Subset collection can handle subsets" | , |
"" | [subset-colls] | ||
) |
Definition at line 520 of file unittest.cpp.
TEST_CASE | ( | "Subset collection only handles tracked objects" | , |
"" | [subset-colls] | ||
) |
Definition at line 598 of file unittest.cpp.
TEST_CASE | ( | "thread-safe prepareForWrite" | , |
"" | [basics][multithread] | ||
) |
Definition at line 282 of file unittest.cpp.
TEST_CASE | ( | "UserInitialization" | , |
"" | [basics][code-gen] | ||
) |
Definition at line 394 of file unittest.cpp.
TEST_CASE | ( | "VariadicCreate" | , |
"" | [basics] | ||
) |
Definition at line 244 of file unittest.cpp.
TEST_CASE | ( | "Version tests" | , |
"" | [versioning] | ||
) |
Definition at line 843 of file unittest.cpp.
TEST_CASE | ( | "write_buffer" | , |
"" | [basics][io] | ||
) |
Definition at line 258 of file unittest.cpp.