|
ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Unit tests for json handling. More...
#include <algorithm>#include <ostream>#include <random>#include <gmock/gmock.h>#include <gtest/gtest.h>#include <nlohmann/json.hpp>#include <daq/error/report.hpp>#include <daq/fits/json.hpp>#include "matchers.hpp"Go to the source code of this file.
Classes | |
| class | TestLiteralKeyword |
| class | TestKeyword< Type > |
Note that test cases must use TypeParam and cannot declare templated aliases. More... | |
Typedefs | |
| using | Types = ::testing::Types< ValueKeyword, EsoKeyword > |
Functions | |
| TEST_F (TestLiteralKeyword, ConstructStrangeKeywords1) | |
| TEST_F (TestLiteralKeyword, ConstructStrangeKeywords4) | |
| TEST_F (TestLiteralKeyword, ConstructStrangeKeywords3) | |
| TEST_F (TestLiteralKeyword, ConstructStrangeKeywords5) | |
| TEST_F (TestLiteralKeyword, ConstructStrangeKeywords6) | |
| TEST_F (TestLiteralKeyword, ConstructStrangeKeywords7) | |
| TEST_F (TestLiteralKeyword, ConstructRegularKeywords) | |
| TEST_F (TestLiteralKeyword, ValueKeywordTypes) | |
| TEST_F (TestLiteralKeyword, InvalidEsoKeywordTypes) | |
| TEST_F (TestLiteralKeyword, EsoKeywordTypes) | |
| TEST_F (TestLiteralKeyword, CommentaryKeywordTypes) | |
| TEST_F (TestLiteralKeyword, EqualityOperator) | |
| TEST_F (TestLiteralKeyword, OstreamOperator) | |
| TYPED_TEST_CASE (TestKeyword, Types) | |
| TYPED_TEST (TestKeyword, Construction) | |
| TYPED_TEST (TestKeyword, OptionalComment) | |
| TYPED_TEST (TestKeyword, ConstructFromString) | |
| Test that construction of keyword from a C string is stored as std::string and not a bool, which is the implicitly converted type for the variant construction otherwise. More... | |
| TYPED_TEST (TestKeyword, Equality) | |
| TYPED_TEST (TestKeyword, Ordering) | |
| TYPED_TEST (TestKeyword, OstreamOperator) | |
| TEST (TestKeywordCombinations, OperatorLessComparesKeywordName) | |
| TEST (TestKeywordCombinations, NameEquals) | |
| TEST (KeywordVector, UpdateKeywords) | |
| TEST (KeywordVector, InsertKeywordsEnd) | |
| TEST (KeywordVector, InsertKeywordsBegin) | |
| TEST (KeywordVector, InsertKeywordsMiddle) | |
| TEST (TestFormatting, ValueKeyword) | |
| TEST (TestFormatting, EsoKeyword) | |
| TEST (TestFormatting, LiteralKeyword) | |
| TEST (TestFormatting, TooLongKeywords) | |
| TEST (TestFormatting, KeywordVariant) | |
| TEST (TestStandardSortV1, StableSortsValueKeywords) | |
| TEST (TestStandardSortV1, StableSortsByKeywordType) | |
| TEST (TestStandardSortV1, EsoKeywordsAreSortedByCategory) | |
| TEST (TestStandardSortV1, EsoKeywordsAreSortedByNumberedCategory) | |
| TEST (TestStandardSortV1, EsoKeywordAreSortedEvenIfCloslyMatched) | |
| TEST (TestStandardSortV1, EsoKeywordAreSortedEvenIfStrange) | |
| TEST (TestStandardSortV1, CommentsSortedByName) | |
| TEST (TestStandardSortV1, EsoKeywordsAreSortedAlphabetically) | |
Unit tests for json handling.
Definition in file testKeyword.cpp.
| using Types = ::testing::Types<ValueKeyword, EsoKeyword> |
Definition at line 255 of file testKeyword.cpp.
| TEST | ( | KeywordVector | , |
| InsertKeywordsBegin | |||
| ) |
Definition at line 494 of file testKeyword.cpp.
| TEST | ( | KeywordVector | , |
| InsertKeywordsEnd | |||
| ) |
Definition at line 461 of file testKeyword.cpp.
| TEST | ( | KeywordVector | , |
| InsertKeywordsMiddle | |||
| ) |
Definition at line 525 of file testKeyword.cpp.
| TEST | ( | KeywordVector | , |
| UpdateKeywords | |||
| ) |
Definition at line 433 of file testKeyword.cpp.
| TEST | ( | TestFormatting | , |
| EsoKeyword | |||
| ) |
Definition at line 583 of file testKeyword.cpp.
| TEST | ( | TestFormatting | , |
| KeywordVariant | |||
| ) |
Definition at line 634 of file testKeyword.cpp.
| TEST | ( | TestFormatting | , |
| LiteralKeyword | |||
| ) |
Definition at line 607 of file testKeyword.cpp.
| TEST | ( | TestFormatting | , |
| TooLongKeywords | |||
| ) |
Definition at line 615 of file testKeyword.cpp.
| TEST | ( | TestFormatting | , |
| ValueKeyword | |||
| ) |
Definition at line 559 of file testKeyword.cpp.
| TEST | ( | TestKeywordCombinations | , |
| NameEquals | |||
| ) |
Definition at line 409 of file testKeyword.cpp.
| TEST | ( | TestKeywordCombinations | , |
| OperatorLessComparesKeywordName | |||
| ) |
Definition at line 367 of file testKeyword.cpp.
| TEST | ( | TestStandardSortV1 | , |
| CommentsSortedByName | |||
| ) |
Definition at line 799 of file testKeyword.cpp.
| TEST | ( | TestStandardSortV1 | , |
| EsoKeywordAreSortedEvenIfCloslyMatched | |||
| ) |
Definition at line 760 of file testKeyword.cpp.
| TEST | ( | TestStandardSortV1 | , |
| EsoKeywordAreSortedEvenIfStrange | |||
| ) |
Definition at line 776 of file testKeyword.cpp.
| TEST | ( | TestStandardSortV1 | , |
| EsoKeywordsAreSortedAlphabetically | |||
| ) |
Definition at line 819 of file testKeyword.cpp.
| TEST | ( | TestStandardSortV1 | , |
| EsoKeywordsAreSortedByCategory | |||
| ) |
Definition at line 685 of file testKeyword.cpp.
| TEST | ( | TestStandardSortV1 | , |
| EsoKeywordsAreSortedByNumberedCategory | |||
| ) |
Definition at line 733 of file testKeyword.cpp.
| TEST | ( | TestStandardSortV1 | , |
| StableSortsByKeywordType | |||
| ) |
Definition at line 662 of file testKeyword.cpp.
| TEST | ( | TestStandardSortV1 | , |
| StableSortsValueKeywords | |||
| ) |
Definition at line 646 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| CommentaryKeywordTypes | |||
| ) |
Definition at line 183 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| ConstructRegularKeywords | |||
| ) |
Definition at line 93 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| ConstructStrangeKeywords1 | |||
| ) |
Definition at line 46 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| ConstructStrangeKeywords3 | |||
| ) |
Definition at line 61 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| ConstructStrangeKeywords4 | |||
| ) |
Definition at line 53 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| ConstructStrangeKeywords5 | |||
| ) |
Definition at line 69 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| ConstructStrangeKeywords6 | |||
| ) |
Definition at line 77 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| ConstructStrangeKeywords7 | |||
| ) |
Definition at line 85 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| EqualityOperator | |||
| ) |
Definition at line 218 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| EsoKeywordTypes | |||
| ) |
Definition at line 129 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| InvalidEsoKeywordTypes | |||
| ) |
Definition at line 124 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| OstreamOperator | |||
| ) |
Definition at line 228 of file testKeyword.cpp.
| TEST_F | ( | TestLiteralKeyword | , |
| ValueKeywordTypes | |||
| ) |
Definition at line 103 of file testKeyword.cpp.
| TYPED_TEST | ( | TestKeyword | , |
| ConstructFromString | |||
| ) |
Test that construction of keyword from a C string is stored as std::string and not a bool, which is the implicitly converted type for the variant construction otherwise.
Definition at line 292 of file testKeyword.cpp.
| TYPED_TEST | ( | TestKeyword | , |
| Construction | |||
| ) |
Definition at line 258 of file testKeyword.cpp.
| TYPED_TEST | ( | TestKeyword | , |
| Equality | |||
| ) |
Definition at line 300 of file testKeyword.cpp.
| TYPED_TEST | ( | TestKeyword | , |
| OptionalComment | |||
| ) |
Definition at line 281 of file testKeyword.cpp.
| TYPED_TEST | ( | TestKeyword | , |
| Ordering | |||
| ) |
Definition at line 317 of file testKeyword.cpp.
| TYPED_TEST | ( | TestKeyword | , |
| OstreamOperator | |||
| ) |
Definition at line 328 of file testKeyword.cpp.
| TYPED_TEST_CASE | ( | TestKeyword | , |
| Types | |||
| ) |