[ 
https://issues.apache.org/jira/browse/TINKERPOP-2412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17188083#comment-17188083
 ] 

Divij Vaidya commented on TINKERPOP-2412:
-----------------------------------------

The specific tests I am looking for are where stepUnderTest().as('x') is the 
only pattern in the query which add the TraverserRequirement for Labeled Path 
and then the labeled path requirement is used further ahead in the query (maybe 
in select or in math). A couple of examples are:

{{g.V().count().as("num").math("num * 2")}}

{{OR}}
{{}}

{{g.V().properties().path().by(T.id).by(T.value).as("myProp").select("myProp")}}


Please feel free to point me to tests if you think these cases are already 
represented. 

> Add missing query tests
> -----------------------
>
>                 Key: TINKERPOP-2412
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2412
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: test-suite
>    Affects Versions: 3.4.8
>            Reporter: Divij Vaidya
>            Priority: Minor
>
> In our Gremlin query test suites, we do not have tests that would test the 
> following pattern of queries:
> # "....blah().barrier().as('x')....blah().select('x')"
> # "....blah().valueMap().as('x')....blah().select('x')"
> # "....blah().path().as('x')....blah().select('x')"
> # "....blah().count().as('x')....blah().select('x')"
> The category of tests can be clubbed into defining an alias and using the 
> value of the alias further ahead in the traversal.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to