blob: f3d92320d2a417feeaca4fc10da893e1cbd442d0 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
@StepClassMap @StepE
Feature: Step - E()
Scenario: g_V_EX11X
Given the modern graph
And using the parameter eid11 defined as "e[josh-created->lop].id"
And the traversal of
"""
g.V().E(eid11)
"""
When iterated to list
Then the result should be unordered
| result |
| e[josh-created->lop] |
| e[josh-created->lop] |
| e[josh-created->lop] |
| e[josh-created->lop] |
| e[josh-created->lop] |
| e[josh-created->lop] |
Scenario: g_EX11X_E
Given the modern graph
And using the parameter eid11 defined as "e[josh-created->lop].id"
And the traversal of
"""
g.E(eid11).E()
"""
When iterated to list
Then the result should be unordered
| result |
| e[marko-created->lop] |
| e[marko-knows->josh] |
| e[marko-knows->vadas] |
| e[peter-created->lop] |
| e[josh-created->lop] |
| e[josh-created->ripple] |
Scenario: g_V_EXnullX
Given the modern graph
And the traversal of
"""
g.V().E(null)
"""
When iterated to list
Then the result should be empty
Scenario: g_V_EXlistXnullXX
Given the modern graph
And using the parameter xx1 defined as "l[null]"
And the traversal of
"""
g.V().E(xx1)
"""
When iterated to list
Then the result should be empty
Scenario: g_injectX1X_EX11_nullX
Given the modern graph
And using the parameter eid11 defined as "e[josh-created->lop].id"
And the traversal of
"""
g.inject(1).E(eid11,null)
"""
When iterated to list
Then the result should be unordered
| result |
| e[josh-created->lop] |
Scenario: g_injectX1X_coalesceXEX_hasLabelXtestsX_addEXtestsX_from_V_hasXnameX_XjoshXX_toXV_hasXnameX_XvadasXXX
Given the empty graph
And the graph initializer of
"""
g.addV("person").property("name", "josh").
addV("person").property("name", "vadas")
"""
And the traversal of
"""
g.inject(1).coalesce(E().hasLabel("tests"), addE("tests").from(V().has("name","josh")).to(V().has("name","vadas")))
"""
When iterated to list
Then the result should have a count of 1
And the graph should return 1 for count of "g.E().hasLabel(\"tests\")"