|
| void | SetUp () override |
| |
| auto | createJsonKVPairLambda () |
| | Wraps createJsonKVPair, making it possible to pass it through functions until it is used. More...
|
| |
| template<typename T > |
| bool | isInJsonObject (T value, const nlohmann::basic_json<> &jsonObject, const std::string &key) const |
| | Checks if given value is contained in json object using the string value. More...
|
| |
| auto | checkExpectedValue (const nlohmann::basic_json<> &jsonObject, const std::string &key) const |
| | Wraps isInJsonObject, making it possible to pass it to the FormatIteratorTestUtil before it is used. More...
|
| |
| bool | validateJsonIterator (SchemaPtr schema, NES::Runtime::MemoryLayouts::TestTupleBuffer *testTupleBuffer, const std::vector< std::vector< JsonKVPair >> &expectedKVPairs) |
| | Uses the json format iterator to read all test tuples and checks that they match the expected KV pairs. More...
|
| |
| void | SetUp () override |
| |
| void | TearDown () override |
| |
| virtual void | onFatalError (int signalNumber, std::string callstack) override |
| | onFatalError shall be called when a signal is caught More...
|
| |
| virtual void | onFatalException (std::shared_ptr< std::exception > exception, std::string callstack) override |
| | onFatalException shall be called when an exception is caught More...
|
| |
| | ~virtual_enable_shared_from_this () NES_NOEXCEPT(true) override=default |
| |
| std::shared_ptr< T1 > | shared_from_this () |
| |
| std::weak_ptr< T1 > | weak_from_this () |
| |
| virtual | ~virtual_enable_shared_from_this_base () NES_NOEXCEPT(isNoexceptDestructible)=default |
| |
| | TestWaitingHelper () |
| |
| void | startWaitingThread (std::string testName) |
| |
| void | completeTest () |
| |
| void | failTest () |
| |
| auto | createTestTupleBuffer (SchemaPtr schema) const |
| |
| auto | setExpectedValue (T value, const SchemaPtr &schema, std::vector< JsonKVPair > &expectedKVPairs, CreateExpectedTypeFunc createExpectedType) |
| | Emplaces the field name and the value for the current field in the current expected KV pairs vector. More...
|
| |
| auto | processTuple (SchemaPtr schema, NES::Runtime::MemoryLayouts::TestTupleBuffer *testTupleBuffer, std::vector< std::vector< JsonKVPair >> &expectedKVPairs, CreateExpectedTypeFunc createExpectedType, const Values &... values) |
| | Process a single tuple containing Values, inserting it into the testTupleBuffer. More...
|
| |
| auto | processTuples (SchemaPtr schema, std::vector< std::vector< JsonKVPair >> &expectedKVPairs, CreateExpectedTypeFunc createExpectedType, const Tuples &... tuples) |
| | Calls processTuple for every tuple supplied by the current test. More...
|
| |
| auto | processTupleWithString (SchemaPtr schema, NES::Runtime::MemoryLayouts::TestTupleBuffer *testTupleBuffer, std::vector< std::vector< JsonKVPair >> &expectedKVPairs, CreateExpectedTypeFunc createExpectedType, const Values &... values) |
| | Process a single tuple containing Values with Text, inserting it into the testTupleBuffer. More...
|
| |
| auto | processTuplesWithString (SchemaPtr schema, std::vector< std::vector< JsonKVPair >> &expectedKVPairs, CreateExpectedTypeFunc createExpectedType, const Tuples &... tuples) |
| | Calls processTupleWithString for every tuple supplied by the current test. More...
|
| |
| auto | validateExpectedKVPairForVariant (const JsonKVPair &expectedKVPair, CheckExpectedValueFunc checkExpectedValueFunc) const |
| | Gets the a value from std::variant with the correct type and validates if it is in the expected values. Expects ExpectedType to have a value member of type std::variant. More...
|
| |
Testing the functionality of the iterating over the json format. Since the created json objects may store the key-value-pairs in a different order, compared to our schema, we just check if the results contain the expected strings.