memgraph/tests/unit
Teon Banek 9d3b4aab4b Make Where and NamedExpression macros easier to use
Summary:
`Where` can now be constructed in a `QUERY`, instead of requiring manual
addition to `Match`. For example:

    auto query = QUERY(MATCH(pattern), WHERE(expr), ...);

compared to:

    auto match = MATCH(pattern);
    match->where_ = WHERE(expr);
    auto query = QUERY(match, ...);

Similarly, `AS` can be used instead of `NEXPR` to create
`NamedExpressions` only with a name. This is meant to be used with
`RETURN` which will look at the previous `Expression` and store it
inside `NamedExpression`. For example:

    auto ret = RETURN(IDENT("n"), AS("n"),
                      PROPERTY_LOOKUP("n", prop), AS("prop_val"));

compared to:

    auto ret = RETURN(NEXPR("n", IDENT("n")),
                      NEXPR("prop_val", PROPERTY_LOOKUP("n", prop)));

Reviewers: florijan, mislav.bradac

Reviewed By: florijan

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D195
2017-03-29 09:09:54 +02:00
..
allocator.cpp examples folder has been removed; src/test folder has been removed; the existing tests were moved to tests folder; StacktraceException has been introduced; query_plan_templated has been moved to query folder; hazard pointers have been deleted because they are not used any more 2017-02-18 18:03:48 +01:00
basic_bloom_filter.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
block_allocator.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
bolt_chunked_buffer.cpp Bolt PullAll works. 2017-03-28 12:43:04 +02:00
bolt_chunked_decoder.cpp Bolt PullAll works. 2017-03-28 12:43:04 +02:00
bolt_common.hpp Bolt PullAll works. 2017-03-28 12:43:04 +02:00
bolt_encoder.cpp Bolt PullAll works. 2017-03-28 12:43:04 +02:00
bolt_result_stream.cpp Bolt PullAll works. 2017-03-28 12:43:04 +02:00
bolt_session.cpp Bolt PullAll works. 2017-03-28 12:43:04 +02:00
CMakeLists.txt Coverage for test binaries is excluded. 2017-03-23 16:07:25 +01:00
concurrent_list.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
concurrent_map.cpp examples folder has been removed; src/test folder has been removed; the existing tests were moved to tests folder; StacktraceException has been introduced; query_plan_templated has been moved to query folder; hazard pointers have been deleted because they are not used any more 2017-02-18 18:03:48 +01:00
concurrent_set.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
cypher_main_visitor.cpp Add SET conversion from low to highlevel ast 2017-03-28 10:56:20 +02:00
dynamic_bitset.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
exceptions.cpp examples folder has been removed; src/test folder has been removed; the existing tests were moved to tests folder; StacktraceException has been introduced; query_plan_templated has been moved to query folder; hazard pointers have been deleted because they are not used any more 2017-02-18 18:03:48 +01:00
fswatcher.cpp Reduce number of iterations in fswatcher test 2017-03-01 11:24:51 +01:00
graph_db_accessor.cpp Query - Logical - Delete op added and tested. Minor refactors. 2017-03-27 14:57:44 +02:00
id.cpp all unit tests are gtests 2017-02-19 23:47:09 +01:00
interpreter.cpp Query::Plan - Set logical ops implementation and testing. PropertyValueStore set() overriden to handle Null values as a removal instead of setting them. PropertyValueStore.clear() function added. 2017-03-29 08:51:12 +02:00
logging.cpp Fixed logging tests. 2017-03-20 08:18:52 +00:00
network_endpoint.cpp Started network refactorization. 2017-03-06 13:52:34 +01:00
program_argument.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
property_value_store.cpp Query::Plan - Set logical ops implementation and testing. PropertyValueStore set() overriden to handle Null values as a removal instead of setting them. PropertyValueStore.clear() function added. 2017-03-29 08:51:12 +02:00
ptr_int.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
query_common.hpp Make Where and NamedExpression macros easier to use 2017-03-29 09:09:54 +02:00
query_expression_evaluator.cpp Query - Logical - Delete op added and tested. Minor refactors. 2017-03-27 14:57:44 +02:00
query_planner.cpp Make Where and NamedExpression macros easier to use 2017-03-29 09:09:54 +02:00
query_semantic.cpp Make Where and NamedExpression macros easier to use 2017-03-29 09:09:54 +02:00
query_stripper.cpp Change clique to use in64_t 2017-03-10 13:58:02 +01:00
record_edge_vertex_accessor.cpp Everything is merged (communication + query engine) but we have to fix the PULL_ALL issue. 2017-03-22 17:57:06 +01:00
rh_hashmap.cpp Fix warnings all over the codebase. 2017-03-22 09:32:06 +01:00
rh_hashmultimap.cpp Fix warnings all over the codebase. 2017-03-22 09:32:06 +01:00
signal_handler.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
skiplist_reverse_iteration.cpp examples folder has been removed; src/test folder has been removed; the existing tests were moved to tests folder; StacktraceException has been introduced; query_plan_templated has been moved to query folder; hazard pointers have been deleted because they are not used any more 2017-02-18 18:03:48 +01:00
stack_allocator.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
static_bitset.cpp Static bitset with tests created. 2017-03-08 17:13:20 +01:00
template_engine.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
timestamp.cpp all unit tests are gtests 2017-02-19 23:47:09 +01:00
transaction_engine.cpp Fix engine. 2017-03-24 12:37:01 +01:00
traversal.cpp Fix warnings all over the codebase. 2017-03-22 09:32:06 +01:00
typed_value.cpp Implement expression evaluation 2017-03-24 17:44:05 +01:00
union_find.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00
unique_object_store.cpp clang format has been run on all hpp and cpp files under src and tests 2017-02-18 11:54:37 +01:00