diff --git a/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Tree_for_code_coverage.verified.txt b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..dbd6b9b99 --- /dev/null +++ b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Tree_for_code_coverage.verified.txt @@ -0,0 +1 @@ +g.V().hasLabel('Person').tree().by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by() \ No newline at end of file diff --git a/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Tree_for_code_coverage.verified.txt b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..903ecbd3f --- /dev/null +++ b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Tree_for_code_coverage.verified.txt @@ -0,0 +1,181 @@ +{ + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Tree_for_code_coverage.verified.txt b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..903ecbd3f --- /dev/null +++ b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Tree_for_code_coverage.verified.txt @@ -0,0 +1,181 @@ +{ + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Tree_for_code_coverage.verified.txt b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..cb79d6520 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Tree_for_code_coverage.verified.txt @@ -0,0 +1 @@ +!application/vnd.gremlin-v2.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["V"],["hasLabel","Person"],["tree"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Tree_for_code_coverage.verified.txt b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..615bf1bb8 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Tree_for_code_coverage.verified.txt @@ -0,0 +1 @@ +!application/vnd.gremlin-v3.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["V"],["hasLabel","Person"],["tree"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by","Age"],["by"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.Tree_for_code_coverage.verified.txt b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..42f8ed868 --- /dev/null +++ b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.Tree_for_code_coverage.verified.txt @@ -0,0 +1,7 @@ +{ + Script: g.V().hasLabel(_a).tree().by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(), + Bindings: { + _a: Person, + _b: Age + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/OuterProjectionTest.Tree_for_code_coverage.verified.txt b/test/Core.Tests/Serialization/OuterProjectionTest.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Core.Tests/Serialization/OuterProjectionTest.Tree_for_code_coverage.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageSerializationTest.Tree_for_code_coverage.verified.txt b/test/Core.Tests/Serialization/RequestMessageSerializationTest.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..1ec960da9 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageSerializationTest.Tree_for_code_coverage.verified.txt @@ -0,0 +1,191 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] + } + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.Tree_for_code_coverage.verified.txt b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..eb15a0b02 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.Tree_for_code_coverage.verified.txt @@ -0,0 +1,15 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: Person, + _b: Age + }, + gremlin: g.V().hasLabel(_a).tree().by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by() + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/DebugTests.Tree_for_code_coverage.verified.txt b/test/Providers.CosmosDb.Tests/DebugTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..dbd6b9b99 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/DebugTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1 @@ +g.V().hasLabel('Person').tree().by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by() \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt b/test/Providers.CosmosDb.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..9f65eebcd --- /dev/null +++ b/test/Providers.CosmosDb.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,8 @@ +[ + [ + { + Key: 36, + Value: [] + } + ] +] \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..eb15a0b02 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,15 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: Person, + _b: Age + }, + gremlin: g.V().hasLabel(_a).tree().by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by() + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/SerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.CosmosDb.Tests/SerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..42f8ed868 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/SerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,7 @@ +{ + Script: g.V().hasLabel(_a).tree().by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(), + Bindings: { + _a: Person, + _b: Age + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/DebugTests.Tree_for_code_coverage.verified.txt b/test/Providers.GremlinServer.Tests/DebugTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..dbd6b9b99 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/DebugTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1 @@ +g.V().hasLabel('Person').tree().by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by('Age').by() \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.Tree_for_code_coverage.verified.txt b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..9f65eebcd --- /dev/null +++ b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,8 @@ +[ + [ + { + Key: 36, + Value: [] + } + ] +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..9f65eebcd --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,8 @@ +[ + [ + { + Key: 36, + Value: [] + } + ] +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.Tree_for_code_coverage.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..9f65eebcd --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,8 @@ +[ + [ + { + Key: 36, + Value: [] + } + ] +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.Tree_for_code_coverage.verified.txt b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..e2b51bb1e --- /dev/null +++ b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,20 @@ +[ + { + log: { + Level: Debug, + Category: LoggingFixture, + Message: Executing Gremlin query 12345678-9012-3456-7890-123456789012 with groovy script g.V().hasLabel(_a).tree().by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by()., + State: [ + { + requestId: 12345678-9012-3456-7890-123456789012 + }, + { + script: g.V().hasLabel(_a).tree().by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by(_b).by() + }, + { + {OriginalFormat}: Executing Gremlin query {requestId} with groovy script {script}. + } + ] + } + } +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.Tree_for_code_coverage.verified.txt b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..9f65eebcd --- /dev/null +++ b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,8 @@ +[ + [ + { + Key: 36, + Value: [] + } + ] +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..1ec960da9 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,191 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..f09994f36 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,191 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: a + }, + gremlin: { + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/SerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.GremlinServer.Tests/SerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..903ecbd3f --- /dev/null +++ b/test/Providers.GremlinServer.Tests/SerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,181 @@ +{ + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt b/test/Providers.JanusGraph.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..1ec960da9 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,191 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/SerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.JanusGraph.Tests/SerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..903ecbd3f --- /dev/null +++ b/test/Providers.JanusGraph.Tests/SerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,181 @@ +{ + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..3226f1108 --- /dev/null +++ b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,197 @@ +{ + SourceInstructions: [ + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.endpoint, + http://elastic.search.server + ] + }, + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.queryType, + query_string + ] + } + ], + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt b/test/Providers.Neptune.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..9f65eebcd --- /dev/null +++ b/test/Providers.Neptune.Tests/IntegrationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,8 @@ +[ + [ + { + Key: 36, + Value: [] + } + ] +] \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..1ec960da9 --- /dev/null +++ b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,191 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/SerializationTests.Tree_for_code_coverage.verified.txt b/test/Providers.Neptune.Tests/SerializationTests.Tree_for_code_coverage.verified.txt new file mode 100644 index 000000000..903ecbd3f --- /dev/null +++ b/test/Providers.Neptune.Tests/SerializationTests.Tree_for_code_coverage.verified.txt @@ -0,0 +1,181 @@ +{ + StepInstructions: [ + { + OperatorName: V + }, + { + OperatorName: hasLabel, + Arguments: [ + Person + ] + }, + { + OperatorName: tree + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by, + Arguments: [ + Age + ] + }, + { + OperatorName: by + } + ] +} \ No newline at end of file diff --git a/test/Tests.Infrastructure/QueryExecutionTest.cs b/test/Tests.Infrastructure/QueryExecutionTest.cs index 5c14037ff..b7589026e 100644 --- a/test/Tests.Infrastructure/QueryExecutionTest.cs +++ b/test/Tests.Infrastructure/QueryExecutionTest.cs @@ -2789,6 +2789,39 @@ public virtual Task Tree_with_builder_and_modulator_on_last_Of() => _g .Of().By(x => x.Role!)) .Verify(); + [Fact] + public virtual Task Tree_for_code_coverage() => _g + .V() + .Tree(_ => _ + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age) + .Of().By(x => x.Age)) + .Verify(); + [Fact] public virtual Task Union() => _g .V()