diff --git a/src/Core/Extensions/StringGremlinQueryExtensions.cs b/src/Core/Extensions/StringGremlinQueryExtensions.cs index c42cc8abe..defa495e0 100644 --- a/src/Core/Extensions/StringGremlinQueryExtensions.cs +++ b/src/Core/Extensions/StringGremlinQueryExtensions.cs @@ -12,6 +12,11 @@ public static IStringGremlinQuery Concat(this IGremlinQueryBase .ChangeQueryType>() .Concat(stringTraversals); + public static IGremlinQuery Length(this IGremlinQueryBase query) => query + .AsAdmin() + .ChangeQueryType>() + .Length(); + public static IStringGremlinQuery Substring(this IGremlinQueryBase query, int startIndex) => query .AsAdmin() .ChangeQueryType>() @@ -26,5 +31,15 @@ public static IStringGremlinQuery Substring(this IGremlinQueryBase>() .Substring(range); + + public static IStringGremlinQuery ToLower(this IGremlinQueryBase query) => query + .AsAdmin() + .ChangeQueryType>() + .ToLower(); + + public static IStringGremlinQuery ToUpper(this IGremlinQueryBase query) => query + .AsAdmin() + .ChangeQueryType>() + .ToUpper(); } } diff --git a/src/Core/Queries/GremlinQuery.cs b/src/Core/Queries/GremlinQuery.cs index ba5d34fb8..11079fe4b 100644 --- a/src/Core/Queries/GremlinQuery.cs +++ b/src/Core/Queries/GremlinQuery.cs @@ -341,6 +341,25 @@ private GremlinQuery AsString() => th .WithNewProjection(Projection.Value) .AsAuto()); + private GremlinQuery Length() => this + .Continue() + .Build(static builder => builder + .AddStep(LengthStep.Instance) + .WithNewProjection(Projection.Value) + .AsAuto()); + + private GremlinQuery ToLower() => this + .Continue() + .Build(static builder => builder + .AddStep(ToLowerStep.Instance) + .WithNewProjection(Projection.Value)); + + private GremlinQuery ToUpper() => this + .Continue() + .Build(static builder => builder + .AddStep(ToUpperStep.Instance) + .WithNewProjection(Projection.Value)); + private GremlinQuery Barrier() => this .Continue() .Build(static builder => builder diff --git a/src/Core/Queries/GremlinQuery.explicit.cs b/src/Core/Queries/GremlinQuery.explicit.cs index 4249f7d0e..265ecd005 100644 --- a/src/Core/Queries/GremlinQuery.explicit.cs +++ b/src/Core/Queries/GremlinQuery.explicit.cs @@ -476,5 +476,11 @@ IStringGremlinQuery IStringGremlinQuery.Substring(int startIndex, int le : throw new ArgumentOutOfRangeException(); IStringGremlinQuery IStringGremlinQuery.Substring(Range range) => Substring(range); + + IGremlinQuery IStringGremlinQuery.Length() => Length(); + + IStringGremlinQuery IStringGremlinQuery.ToLower() => ToLower(); + + IStringGremlinQuery IStringGremlinQuery.ToUpper() => ToUpper(); } } diff --git a/src/Core/Queries/Interfaces/IStringGremlinQuery.cs b/src/Core/Queries/Interfaces/IStringGremlinQuery.cs index 0beb6b66e..06d411f98 100644 --- a/src/Core/Queries/Interfaces/IStringGremlinQuery.cs +++ b/src/Core/Queries/Interfaces/IStringGremlinQuery.cs @@ -6,10 +6,16 @@ public interface IStringGremlinQuery : IGremlinQueryBaseRec Concat(params Func, IGremlinQueryBase>[] stringTraversals); + IGremlinQuery Length(); + IStringGremlinQuery Substring(int startIndex); IStringGremlinQuery Substring(int startIndex, int length); IStringGremlinQuery Substring(Range range); + + IStringGremlinQuery ToLower(); + + IStringGremlinQuery ToUpper(); } } diff --git a/src/Core/Serialization/Instructions.cs b/src/Core/Serialization/Instructions.cs index 35c081b73..ca6f26e5c 100644 --- a/src/Core/Serialization/Instructions.cs +++ b/src/Core/Serialization/Instructions.cs @@ -22,6 +22,7 @@ internal static class Instructions public static readonly Instruction inV = new(nameof(inV)); public static readonly Instruction key = new(nameof(key)); public static readonly Instruction label = new(nameof(label)); + public static readonly Instruction length = new(nameof(length)); public static readonly Instruction max = new(nameof(max)); public static readonly Instruction mean = new(nameof(mean)); public static readonly Instruction min = new(nameof(min)); @@ -33,6 +34,8 @@ internal static class Instructions public static readonly Instruction profile = new(nameof(profile)); public static readonly Instruction simplePath = new(nameof(simplePath)); public static readonly Instruction sum = new(nameof(sum)); + public static readonly Instruction toLower = new(nameof(toLower)); + public static readonly Instruction toUpper = new(nameof(toUpper)); public static readonly Instruction tree = new(nameof(tree)); public static readonly Instruction unfold = new(nameof(unfold)); public static readonly Instruction value = new(nameof(value)); diff --git a/src/Core/Serialization/Serializer.cs b/src/Core/Serialization/Serializer.cs index 26e5e1063..a72567c16 100644 --- a/src/Core/Serialization/Serializer.cs +++ b/src/Core/Serialization/Serializer.cs @@ -420,6 +420,7 @@ private static ITransformer AddDefaultStepConverters(this ITransformer serialize : step.Predicate)) .Add((_, _, _, _) => key) .Add((_, _, _, _) => label) + .Add((step, env, _, recurse) => length) .Add((step, env, _, recurse) => step.Scope.Equals(Scope.Local) ? CreateInstruction("limit", recurse, env, step.Scope, step.Count) : CreateInstruction("limit", recurse, env, step.Count)) @@ -546,6 +547,8 @@ private static ITransformer AddDefaultStepConverters(this ITransformer serialize ? CreateInstruction("tail", recurse, env, step.Scope, step.Count) : CreateInstruction("tail", recurse, env, step.Count)) .Add((step, env, _, recurse) => CreateInstruction("times", recurse, env, step.Count)) + .Add((step, env, _, recurse) => toLower) + .Add((step, env, _, recurse) => toUpper) .Add((_, _, _, _) => tree) .Add((_, _, _, _) => by) .Add((step, env, _, recurse) => CreateInstruction("by", recurse, env, step.Key)) diff --git a/src/Core/Steps/LengthStep.cs b/src/Core/Steps/LengthStep.cs new file mode 100644 index 000000000..475cc304a --- /dev/null +++ b/src/Core/Steps/LengthStep.cs @@ -0,0 +1,12 @@ +namespace ExRam.Gremlinq.Core.Steps +{ + public sealed class LengthStep : Step + { + public static readonly LengthStep Instance = new(); + + private LengthStep() + { + + } + } +} diff --git a/src/Core/Steps/ToLowerStep.cs b/src/Core/Steps/ToLowerStep.cs new file mode 100644 index 000000000..f800a323b --- /dev/null +++ b/src/Core/Steps/ToLowerStep.cs @@ -0,0 +1,12 @@ +namespace ExRam.Gremlinq.Core.Steps +{ + public sealed class ToLowerStep : Step + { + public static readonly ToLowerStep Instance = new(); + + private ToLowerStep() + { + + } + } +} diff --git a/src/Core/Steps/ToUpperStep.cs b/src/Core/Steps/ToUpperStep.cs new file mode 100644 index 000000000..59a2584fe --- /dev/null +++ b/src/Core/Steps/ToUpperStep.cs @@ -0,0 +1,12 @@ +namespace ExRam.Gremlinq.Core.Steps +{ + public sealed class ToUpperStep : Step + { + public static readonly ToUpperStep Instance = new(); + + private ToUpperStep() + { + + } + } +} diff --git a/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Length.verified.txt b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Length.verified.txt new file mode 100644 index 000000000..85bd17a9c --- /dev/null +++ b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Length.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').asString().length() \ No newline at end of file diff --git a/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Length_with_extension.verified.txt b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Length_with_extension.verified.txt new file mode 100644 index 000000000..92a913ef4 --- /dev/null +++ b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Length_with_extension.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').length() \ No newline at end of file diff --git a/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToLower.verified.txt b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToLower.verified.txt new file mode 100644 index 000000000..2ece814d4 --- /dev/null +++ b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToLower.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').asString().toLower() \ No newline at end of file diff --git a/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToLower_with_extension.verified.txt b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..accd0748e --- /dev/null +++ b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToLower_with_extension.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').toLower() \ No newline at end of file diff --git a/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToUpper.verified.txt b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToUpper.verified.txt new file mode 100644 index 000000000..65e3c55e5 --- /dev/null +++ b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToUpper.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').asString().toUpper() \ No newline at end of file diff --git a/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToUpper_with_extension.verified.txt b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..e2044545e --- /dev/null +++ b/test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToUpper_with_extension.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').toUpper() \ No newline at end of file diff --git a/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Length.verified.txt b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Length.verified.txt new file mode 100644 index 000000000..d01d23654 --- /dev/null +++ b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Length.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Length_with_extension.verified.txt b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Length_with_extension.verified.txt new file mode 100644 index 000000000..a09514725 --- /dev/null +++ b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Length_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToLower.verified.txt b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToLower.verified.txt new file mode 100644 index 000000000..917b36ac4 --- /dev/null +++ b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToLower.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToLower_with_extension.verified.txt b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..061f44523 --- /dev/null +++ b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToLower_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToUpper.verified.txt b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToUpper.verified.txt new file mode 100644 index 000000000..a988fc77a --- /dev/null +++ b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToUpper.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToUpper_with_extension.verified.txt b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..d79a5a64a --- /dev/null +++ b/test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToUpper_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Length.verified.txt b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Length.verified.txt new file mode 100644 index 000000000..d01d23654 --- /dev/null +++ b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Length.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Length_with_extension.verified.txt b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Length_with_extension.verified.txt new file mode 100644 index 000000000..a09514725 --- /dev/null +++ b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Length_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToLower.verified.txt b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToLower.verified.txt new file mode 100644 index 000000000..917b36ac4 --- /dev/null +++ b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToLower.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToLower_with_extension.verified.txt b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..061f44523 --- /dev/null +++ b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToLower_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToUpper.verified.txt b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToUpper.verified.txt new file mode 100644 index 000000000..a988fc77a --- /dev/null +++ b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToUpper.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToUpper_with_extension.verified.txt b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..d79a5a64a --- /dev/null +++ b/test/Core.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToUpper_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Length.verified.txt b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Length.verified.txt new file mode 100644 index 000000000..1515b2bba --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Length.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":[["inject","aBcDeFg"],["asString"],["length"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Length_with_extension.verified.txt b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Length_with_extension.verified.txt new file mode 100644 index 000000000..14044ec47 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Length_with_extension.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":[["inject","aBcDeFg"],["length"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToLower.verified.txt b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToLower.verified.txt new file mode 100644 index 000000000..74c7db931 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToLower.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":[["inject","aBcDeFg"],["asString"],["toLower"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToLower_with_extension.verified.txt b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..add461ee0 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToLower_with_extension.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":[["inject","aBcDeFg"],["toLower"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToUpper.verified.txt b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToUpper.verified.txt new file mode 100644 index 000000000..2c569b610 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToUpper.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":[["inject","aBcDeFg"],["asString"],["toUpper"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToUpper_with_extension.verified.txt b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..83c557348 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToUpper_with_extension.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":[["inject","aBcDeFg"],["toUpper"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Length.verified.txt b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Length.verified.txt new file mode 100644 index 000000000..1f5f8d053 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Length.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":[["inject","aBcDeFg"],["asString"],["length"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Length_with_extension.verified.txt b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Length_with_extension.verified.txt new file mode 100644 index 000000000..c0dfc1e46 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Length_with_extension.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":[["inject","aBcDeFg"],["length"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToLower.verified.txt b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToLower.verified.txt new file mode 100644 index 000000000..60a3fa1c0 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToLower.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":[["inject","aBcDeFg"],["asString"],["toLower"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToLower_with_extension.verified.txt b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..e1260bc25 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToLower_with_extension.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":[["inject","aBcDeFg"],["toLower"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToUpper.verified.txt b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToUpper.verified.txt new file mode 100644 index 000000000..35471a974 --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToUpper.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":[["inject","aBcDeFg"],["asString"],["toUpper"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToUpper_with_extension.verified.txt b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..95218f83f --- /dev/null +++ b/test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToUpper_with_extension.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":[["inject","aBcDeFg"],["toUpper"]]}},"aliases":{"g":"g"}}} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.Length.verified.txt b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.Length.verified.txt new file mode 100644 index 000000000..103e26f0e --- /dev/null +++ b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.Length.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).asString().length(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.Length_with_extension.verified.txt b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.Length_with_extension.verified.txt new file mode 100644 index 000000000..20398d2ad --- /dev/null +++ b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.Length_with_extension.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).length(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToLower.verified.txt b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToLower.verified.txt new file mode 100644 index 000000000..92b4335e2 --- /dev/null +++ b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToLower.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).asString().toLower(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToLower_with_extension.verified.txt b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..d0501638c --- /dev/null +++ b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToLower_with_extension.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).toLower(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToUpper.verified.txt b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToUpper.verified.txt new file mode 100644 index 000000000..d93ca2a4b --- /dev/null +++ b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToUpper.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).asString().toUpper(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToUpper_with_extension.verified.txt b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..949237faf --- /dev/null +++ b/test/Core.Tests/Serialization/GroovyGremlinQuerySerializationTest.ToUpper_with_extension.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).toUpper(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/OuterProjectionTest.Length.verified.txt b/test/Core.Tests/Serialization/OuterProjectionTest.Length.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Core.Tests/Serialization/OuterProjectionTest.Length.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Core.Tests/Serialization/OuterProjectionTest.Length_with_extension.verified.txt b/test/Core.Tests/Serialization/OuterProjectionTest.Length_with_extension.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Core.Tests/Serialization/OuterProjectionTest.Length_with_extension.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Core.Tests/Serialization/OuterProjectionTest.ToLower.verified.txt b/test/Core.Tests/Serialization/OuterProjectionTest.ToLower.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Core.Tests/Serialization/OuterProjectionTest.ToLower.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Core.Tests/Serialization/OuterProjectionTest.ToLower_with_extension.verified.txt b/test/Core.Tests/Serialization/OuterProjectionTest.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Core.Tests/Serialization/OuterProjectionTest.ToLower_with_extension.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Core.Tests/Serialization/OuterProjectionTest.ToUpper.verified.txt b/test/Core.Tests/Serialization/OuterProjectionTest.ToUpper.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Core.Tests/Serialization/OuterProjectionTest.ToUpper.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Core.Tests/Serialization/OuterProjectionTest.ToUpper_with_extension.verified.txt b/test/Core.Tests/Serialization/OuterProjectionTest.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Core.Tests/Serialization/OuterProjectionTest.ToUpper_with_extension.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageSerializationTest.Length.verified.txt b/test/Core.Tests/Serialization/RequestMessageSerializationTest.Length.verified.txt new file mode 100644 index 000000000..cc2aaccba --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageSerializationTest.Length.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageSerializationTest.Length_with_extension.verified.txt b/test/Core.Tests/Serialization/RequestMessageSerializationTest.Length_with_extension.verified.txt new file mode 100644 index 000000000..4c44372f9 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageSerializationTest.Length_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToLower.verified.txt b/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToLower.verified.txt new file mode 100644 index 000000000..77a0c3661 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToLower.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToLower_with_extension.verified.txt b/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..8dd4cac56 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToLower_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToUpper.verified.txt b/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToUpper.verified.txt new file mode 100644 index 000000000..a3afb267e --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToUpper.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToUpper_with_extension.verified.txt b/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..563f98aeb --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageSerializationTest.ToUpper_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.Length.verified.txt b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.Length.verified.txt new file mode 100644 index 000000000..2b51953e5 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.Length.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).asString().length() + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.Length_with_extension.verified.txt b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.Length_with_extension.verified.txt new file mode 100644 index 000000000..83bdc48d7 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.Length_with_extension.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).length() + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToLower.verified.txt b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToLower.verified.txt new file mode 100644 index 000000000..94f66e40a --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToLower.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).asString().toLower() + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToLower_with_extension.verified.txt b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..5cfe1dbb8 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToLower_with_extension.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).toLower() + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToUpper.verified.txt b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToUpper.verified.txt new file mode 100644 index 000000000..48a18a199 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToUpper.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).asString().toUpper() + } +} \ No newline at end of file diff --git a/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToUpper_with_extension.verified.txt b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..ee4de3454 --- /dev/null +++ b/test/Core.Tests/Serialization/RequestMessageWithGroovySerializationTest.ToUpper_with_extension.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).toUpper() + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/DebugTests.Length.verified.txt b/test/Providers.CosmosDb.Tests/DebugTests.Length.verified.txt new file mode 100644 index 000000000..85bd17a9c --- /dev/null +++ b/test/Providers.CosmosDb.Tests/DebugTests.Length.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').asString().length() \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/DebugTests.Length_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/DebugTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..92a913ef4 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/DebugTests.Length_with_extension.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').length() \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/DebugTests.ToLower.verified.txt b/test/Providers.CosmosDb.Tests/DebugTests.ToLower.verified.txt new file mode 100644 index 000000000..2ece814d4 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/DebugTests.ToLower.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').asString().toLower() \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/DebugTests.ToLower_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/DebugTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..accd0748e --- /dev/null +++ b/test/Providers.CosmosDb.Tests/DebugTests.ToLower_with_extension.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').toLower() \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/DebugTests.ToUpper.verified.txt b/test/Providers.CosmosDb.Tests/DebugTests.ToUpper.verified.txt new file mode 100644 index 000000000..65e3c55e5 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/DebugTests.ToUpper.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').asString().toUpper() \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/DebugTests.ToUpper_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/DebugTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..e2044545e --- /dev/null +++ b/test/Providers.CosmosDb.Tests/DebugTests.ToUpper_with_extension.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').toUpper() \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/IntegrationTests.Length.verified.txt b/test/Providers.CosmosDb.Tests/IntegrationTests.Length.verified.txt new file mode 100644 index 000000000..09435b1a1 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/IntegrationTests.Length.verified.txt @@ -0,0 +1,45 @@ +{ + Type: GremlinQueryExecutionException, + ExecutionContext: { + ExecutionId: 12345678-9012-3456-7890-123456789012, + Query: {} + }, + Message: Executing query 12345678-9012-3456-7890-123456789012 failed., + Data: {}, + InnerException: { + $type: ResponseException, + Type: ResponseException, + StatusCode: ServerEvaluationError, + StatusAttributes: { + x-ms-activity-id: 12345678-9012-3456-7890-123456789012, + x-ms-request-charge: {Scrubbed}, + x-ms-server-time-ms: {Scrubbed}, + x-ms-status-code: 400, + x-ms-total-request-charge: {Scrubbed}, + x-ms-total-server-time-ms: {Scrubbed} + }, + Message: +ServerEvaluationError: + +ActivityId : 12345678-9012-3456-7890-123456789012 +ExceptionType : GraphCompileException +ExceptionMessage : + Gremlin Query Compilation Error: Unable to find any method 'asString' @ line 1, column 22. + 1 Error(s) + GremlinRequestId : 12345678-9012-3456-7890-123456789012 + Context : graphcompute + Scope : graphparse-translate-csharpexpressionbinding + GraphInterOpStatusCode : QuerySyntaxError + HResult : 0x80131500 +, + Data: {} + }, + StackTrace: +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArray[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at ExRam.Gremlinq.Tests.Infrastructure.ExecutingVerifier.Verify[TElement](IGremlinQueryBase`1 query) +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/IntegrationTests.Length_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/IntegrationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..149822559 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/IntegrationTests.Length_with_extension.verified.txt @@ -0,0 +1,45 @@ +{ + Type: GremlinQueryExecutionException, + ExecutionContext: { + ExecutionId: 12345678-9012-3456-7890-123456789012, + Query: {} + }, + Message: Executing query 12345678-9012-3456-7890-123456789012 failed., + Data: {}, + InnerException: { + $type: ResponseException, + Type: ResponseException, + StatusCode: ServerEvaluationError, + StatusAttributes: { + x-ms-activity-id: 12345678-9012-3456-7890-123456789012, + x-ms-request-charge: {Scrubbed}, + x-ms-server-time-ms: {Scrubbed}, + x-ms-status-code: 400, + x-ms-total-request-charge: {Scrubbed}, + x-ms-total-server-time-ms: {Scrubbed} + }, + Message: +ServerEvaluationError: + +ActivityId : 12345678-9012-3456-7890-123456789012 +ExceptionType : GraphCompileException +ExceptionMessage : + Gremlin Query Compilation Error: Unable to find any method 'length' @ line 1, column 20. + 1 Error(s) + GremlinRequestId : 12345678-9012-3456-7890-123456789012 + Context : graphcompute + Scope : graphparse-translate-csharpexpressionbinding + GraphInterOpStatusCode : QuerySyntaxError + HResult : 0x80131500 +, + Data: {} + }, + StackTrace: +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArray[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at ExRam.Gremlinq.Tests.Infrastructure.ExecutingVerifier.Verify[TElement](IGremlinQueryBase`1 query) +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/IntegrationTests.ToLower.verified.txt b/test/Providers.CosmosDb.Tests/IntegrationTests.ToLower.verified.txt new file mode 100644 index 000000000..09435b1a1 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/IntegrationTests.ToLower.verified.txt @@ -0,0 +1,45 @@ +{ + Type: GremlinQueryExecutionException, + ExecutionContext: { + ExecutionId: 12345678-9012-3456-7890-123456789012, + Query: {} + }, + Message: Executing query 12345678-9012-3456-7890-123456789012 failed., + Data: {}, + InnerException: { + $type: ResponseException, + Type: ResponseException, + StatusCode: ServerEvaluationError, + StatusAttributes: { + x-ms-activity-id: 12345678-9012-3456-7890-123456789012, + x-ms-request-charge: {Scrubbed}, + x-ms-server-time-ms: {Scrubbed}, + x-ms-status-code: 400, + x-ms-total-request-charge: {Scrubbed}, + x-ms-total-server-time-ms: {Scrubbed} + }, + Message: +ServerEvaluationError: + +ActivityId : 12345678-9012-3456-7890-123456789012 +ExceptionType : GraphCompileException +ExceptionMessage : + Gremlin Query Compilation Error: Unable to find any method 'asString' @ line 1, column 22. + 1 Error(s) + GremlinRequestId : 12345678-9012-3456-7890-123456789012 + Context : graphcompute + Scope : graphparse-translate-csharpexpressionbinding + GraphInterOpStatusCode : QuerySyntaxError + HResult : 0x80131500 +, + Data: {} + }, + StackTrace: +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArray[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at ExRam.Gremlinq.Tests.Infrastructure.ExecutingVerifier.Verify[TElement](IGremlinQueryBase`1 query) +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/IntegrationTests.ToLower_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/IntegrationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..ea2c15325 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/IntegrationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,45 @@ +{ + Type: GremlinQueryExecutionException, + ExecutionContext: { + ExecutionId: 12345678-9012-3456-7890-123456789012, + Query: {} + }, + Message: Executing query 12345678-9012-3456-7890-123456789012 failed., + Data: {}, + InnerException: { + $type: ResponseException, + Type: ResponseException, + StatusCode: ServerEvaluationError, + StatusAttributes: { + x-ms-activity-id: 12345678-9012-3456-7890-123456789012, + x-ms-request-charge: {Scrubbed}, + x-ms-server-time-ms: {Scrubbed}, + x-ms-status-code: 400, + x-ms-total-request-charge: {Scrubbed}, + x-ms-total-server-time-ms: {Scrubbed} + }, + Message: +ServerEvaluationError: + +ActivityId : 12345678-9012-3456-7890-123456789012 +ExceptionType : GraphCompileException +ExceptionMessage : + Gremlin Query Compilation Error: Unable to find any method 'toLower' @ line 1, column 21. + 1 Error(s) + GremlinRequestId : 12345678-9012-3456-7890-123456789012 + Context : graphcompute + Scope : graphparse-translate-csharpexpressionbinding + GraphInterOpStatusCode : QuerySyntaxError + HResult : 0x80131500 +, + Data: {} + }, + StackTrace: +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArray[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at ExRam.Gremlinq.Tests.Infrastructure.ExecutingVerifier.Verify[TElement](IGremlinQueryBase`1 query) +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/IntegrationTests.ToUpper.verified.txt b/test/Providers.CosmosDb.Tests/IntegrationTests.ToUpper.verified.txt new file mode 100644 index 000000000..09435b1a1 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/IntegrationTests.ToUpper.verified.txt @@ -0,0 +1,45 @@ +{ + Type: GremlinQueryExecutionException, + ExecutionContext: { + ExecutionId: 12345678-9012-3456-7890-123456789012, + Query: {} + }, + Message: Executing query 12345678-9012-3456-7890-123456789012 failed., + Data: {}, + InnerException: { + $type: ResponseException, + Type: ResponseException, + StatusCode: ServerEvaluationError, + StatusAttributes: { + x-ms-activity-id: 12345678-9012-3456-7890-123456789012, + x-ms-request-charge: {Scrubbed}, + x-ms-server-time-ms: {Scrubbed}, + x-ms-status-code: 400, + x-ms-total-request-charge: {Scrubbed}, + x-ms-total-server-time-ms: {Scrubbed} + }, + Message: +ServerEvaluationError: + +ActivityId : 12345678-9012-3456-7890-123456789012 +ExceptionType : GraphCompileException +ExceptionMessage : + Gremlin Query Compilation Error: Unable to find any method 'asString' @ line 1, column 22. + 1 Error(s) + GremlinRequestId : 12345678-9012-3456-7890-123456789012 + Context : graphcompute + Scope : graphparse-translate-csharpexpressionbinding + GraphInterOpStatusCode : QuerySyntaxError + HResult : 0x80131500 +, + Data: {} + }, + StackTrace: +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArray[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at ExRam.Gremlinq.Tests.Infrastructure.ExecutingVerifier.Verify[TElement](IGremlinQueryBase`1 query) +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/IntegrationTests.ToUpper_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/IntegrationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..c524ceb9a --- /dev/null +++ b/test/Providers.CosmosDb.Tests/IntegrationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,45 @@ +{ + Type: GremlinQueryExecutionException, + ExecutionContext: { + ExecutionId: 12345678-9012-3456-7890-123456789012, + Query: {} + }, + Message: Executing query 12345678-9012-3456-7890-123456789012 failed., + Data: {}, + InnerException: { + $type: ResponseException, + Type: ResponseException, + StatusCode: ServerEvaluationError, + StatusAttributes: { + x-ms-activity-id: 12345678-9012-3456-7890-123456789012, + x-ms-request-charge: {Scrubbed}, + x-ms-server-time-ms: {Scrubbed}, + x-ms-status-code: 400, + x-ms-total-request-charge: {Scrubbed}, + x-ms-total-server-time-ms: {Scrubbed} + }, + Message: +ServerEvaluationError: + +ActivityId : 12345678-9012-3456-7890-123456789012 +ExceptionType : GraphCompileException +ExceptionMessage : + Gremlin Query Compilation Error: Unable to find any method 'toUpper' @ line 1, column 21. + 1 Error(s) + GremlinRequestId : 12345678-9012-3456-7890-123456789012 + Context : graphcompute + Scope : graphparse-translate-csharpexpressionbinding + GraphInterOpStatusCode : QuerySyntaxError + HResult : 0x80131500 +, + Data: {} + }, + StackTrace: +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at ExRam.Gremlinq.Core.AsyncEnumerable.g__Core|10_0[TSource,TState](IAsyncEnumerable`1 source, Func`3 exceptionTransformation, TState state, CancellationToken ct) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArrayWithLength[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at System.Collections.Generic.AsyncEnumerableHelpers.ToArray[T](IAsyncEnumerable`1 source, CancellationToken cancellationToken) +at ExRam.Gremlinq.Tests.Infrastructure.ExecutingVerifier.Verify[TElement](IGremlinQueryBase`1 query) +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.Length.verified.txt b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.Length.verified.txt new file mode 100644 index 000000000..2b51953e5 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.Length.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).asString().length() + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..83bdc48d7 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).length() + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToLower.verified.txt b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..94f66e40a --- /dev/null +++ b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToLower.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).asString().toLower() + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..5cfe1dbb8 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).toLower() + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToUpper.verified.txt b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..48a18a199 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToUpper.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).asString().toUpper() + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..ee4de3454 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,14 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: eval, + Processor: , + Arguments: { + aliases: { + g: g + }, + bindings: { + _a: aBcDeFg + }, + gremlin: g.inject(_a).toUpper() + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/SerializationTests.Length.verified.txt b/test/Providers.CosmosDb.Tests/SerializationTests.Length.verified.txt new file mode 100644 index 000000000..103e26f0e --- /dev/null +++ b/test/Providers.CosmosDb.Tests/SerializationTests.Length.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).asString().length(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/SerializationTests.Length_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/SerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..20398d2ad --- /dev/null +++ b/test/Providers.CosmosDb.Tests/SerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).length(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/SerializationTests.ToLower.verified.txt b/test/Providers.CosmosDb.Tests/SerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..92b4335e2 --- /dev/null +++ b/test/Providers.CosmosDb.Tests/SerializationTests.ToLower.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).asString().toLower(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/SerializationTests.ToLower_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/SerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..d0501638c --- /dev/null +++ b/test/Providers.CosmosDb.Tests/SerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).toLower(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/SerializationTests.ToUpper.verified.txt b/test/Providers.CosmosDb.Tests/SerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..d93ca2a4b --- /dev/null +++ b/test/Providers.CosmosDb.Tests/SerializationTests.ToUpper.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).asString().toUpper(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Providers.CosmosDb.Tests/SerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.CosmosDb.Tests/SerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..949237faf --- /dev/null +++ b/test/Providers.CosmosDb.Tests/SerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,6 @@ +{ + Script: g.inject(_a).toUpper(), + Bindings: { + _a: aBcDeFg + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/DebugTests.Length.verified.txt b/test/Providers.GremlinServer.Tests/DebugTests.Length.verified.txt new file mode 100644 index 000000000..85bd17a9c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/DebugTests.Length.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').asString().length() \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/DebugTests.Length_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/DebugTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..92a913ef4 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/DebugTests.Length_with_extension.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').length() \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/DebugTests.ToLower.verified.txt b/test/Providers.GremlinServer.Tests/DebugTests.ToLower.verified.txt new file mode 100644 index 000000000..2ece814d4 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/DebugTests.ToLower.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').asString().toLower() \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/DebugTests.ToLower_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/DebugTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..accd0748e --- /dev/null +++ b/test/Providers.GremlinServer.Tests/DebugTests.ToLower_with_extension.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').toLower() \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/DebugTests.ToUpper.verified.txt b/test/Providers.GremlinServer.Tests/DebugTests.ToUpper.verified.txt new file mode 100644 index 000000000..65e3c55e5 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/DebugTests.ToUpper.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').asString().toUpper() \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/DebugTests.ToUpper_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/DebugTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..e2044545e --- /dev/null +++ b/test/Providers.GremlinServer.Tests/DebugTests.ToUpper_with_extension.verified.txt @@ -0,0 +1 @@ +g.inject('aBcDeFg').toUpper() \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.Length.verified.txt b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.Length.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.Length.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.Length_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.Length_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToLower.verified.txt b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToLower.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToLower.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToLower_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToUpper.verified.txt b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToUpper.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToUpper.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToUpper_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/GroovyIntegrationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationTests.Length.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationTests.Length.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationTests.Length.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationTests.Length_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationTests.Length_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationTests.ToLower.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationTests.ToLower.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationTests.ToLower.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationTests.ToLower_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationTests.ToUpper.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationTests.ToUpper.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationTests.ToUpper.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationTests.ToUpper_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.Length.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.Length.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.Length.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.Length_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.Length_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToLower.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToLower.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToLower.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToLower_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToLower_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToUpper.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToUpper.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToUpper.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToUpper_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/IntegrationWithoutProjectionTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.Length.verified.txt b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.Length.verified.txt new file mode 100644 index 000000000..984bd6b5a --- /dev/null +++ b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.Length.verified.txt @@ -0,0 +1,20 @@ +[ + { + log: { + Level: Debug, + Category: LoggingFixture, + Message: Executing Gremlin query 12345678-9012-3456-7890-123456789012 with groovy script g.inject(_a).asString().length()., + State: [ + { + requestId: 12345678-9012-3456-7890-123456789012 + }, + { + script: g.inject(_a).asString().length() + }, + { + {OriginalFormat}: Executing Gremlin query {requestId} with groovy script {script}. + } + ] + } + } +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.Length_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..ff2b869dd --- /dev/null +++ b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.Length_with_extension.verified.txt @@ -0,0 +1,20 @@ +[ + { + log: { + Level: Debug, + Category: LoggingFixture, + Message: Executing Gremlin query 12345678-9012-3456-7890-123456789012 with groovy script g.inject(_a).length()., + State: [ + { + requestId: 12345678-9012-3456-7890-123456789012 + }, + { + script: g.inject(_a).length() + }, + { + {OriginalFormat}: Executing Gremlin query {requestId} with groovy script {script}. + } + ] + } + } +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToLower.verified.txt b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToLower.verified.txt new file mode 100644 index 000000000..4d46eb97c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToLower.verified.txt @@ -0,0 +1,20 @@ +[ + { + log: { + Level: Debug, + Category: LoggingFixture, + Message: Executing Gremlin query 12345678-9012-3456-7890-123456789012 with groovy script g.inject(_a).asString().toLower()., + State: [ + { + requestId: 12345678-9012-3456-7890-123456789012 + }, + { + script: g.inject(_a).asString().toLower() + }, + { + {OriginalFormat}: Executing Gremlin query {requestId} with groovy script {script}. + } + ] + } + } +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToLower_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..59ba4bfa6 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,20 @@ +[ + { + log: { + Level: Debug, + Category: LoggingFixture, + Message: Executing Gremlin query 12345678-9012-3456-7890-123456789012 with groovy script g.inject(_a).toLower()., + State: [ + { + requestId: 12345678-9012-3456-7890-123456789012 + }, + { + script: g.inject(_a).toLower() + }, + { + {OriginalFormat}: Executing Gremlin query {requestId} with groovy script {script}. + } + ] + } + } +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToUpper.verified.txt b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToUpper.verified.txt new file mode 100644 index 000000000..daca7a47c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToUpper.verified.txt @@ -0,0 +1,20 @@ +[ + { + log: { + Level: Debug, + Category: LoggingFixture, + Message: Executing Gremlin query 12345678-9012-3456-7890-123456789012 with groovy script g.inject(_a).asString().toUpper()., + State: [ + { + requestId: 12345678-9012-3456-7890-123456789012 + }, + { + script: g.inject(_a).asString().toUpper() + }, + { + {OriginalFormat}: Executing Gremlin query {requestId} with groovy script {script}. + } + ] + } + } +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToUpper_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..6f6d51636 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/LoggingIntegrationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,20 @@ +[ + { + log: { + Level: Debug, + Category: LoggingFixture, + Message: Executing Gremlin query 12345678-9012-3456-7890-123456789012 with groovy script g.inject(_a).toUpper()., + State: [ + { + requestId: 12345678-9012-3456-7890-123456789012 + }, + { + script: g.inject(_a).toUpper() + }, + { + {OriginalFormat}: Executing Gremlin query {requestId} with groovy script {script}. + } + ] + } + } +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.Length.verified.txt b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.Length.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.Length.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.Length_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.Length_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToLower.verified.txt b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToLower.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToLower.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToLower_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToUpper.verified.txt b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToUpper.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToUpper.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToUpper_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.GremlinServer.Tests/ObjectQueryIntegrationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.Length.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.Length.verified.txt new file mode 100644 index 000000000..cc2aaccba --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.Length.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..4c44372f9 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToLower.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..77a0c3661 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToLower.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..8dd4cac56 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToUpper.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..a3afb267e --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToUpper.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..563f98aeb --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.Length.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.Length.verified.txt new file mode 100644 index 000000000..38c7e3868 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.Length.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: a + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.Length_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..775a79f04 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: a + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToLower.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..f7fbcfd1d --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToLower.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: a + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToLower_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..5db866a23 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: a + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToUpper.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..563d6e4d5 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToUpper.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: a + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..c2d9c5c46 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/RequestMessageWithAliasSerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: a + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/SerializationTests.Length.verified.txt b/test/Providers.GremlinServer.Tests/SerializationTests.Length.verified.txt new file mode 100644 index 000000000..d01d23654 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/SerializationTests.Length.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/SerializationTests.Length_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/SerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..a09514725 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/SerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/SerializationTests.ToLower.verified.txt b/test/Providers.GremlinServer.Tests/SerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..917b36ac4 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/SerializationTests.ToLower.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/SerializationTests.ToLower_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/SerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..061f44523 --- /dev/null +++ b/test/Providers.GremlinServer.Tests/SerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/SerializationTests.ToUpper.verified.txt b/test/Providers.GremlinServer.Tests/SerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..a988fc77a --- /dev/null +++ b/test/Providers.GremlinServer.Tests/SerializationTests.ToUpper.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Providers.GremlinServer.Tests/SerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.GremlinServer.Tests/SerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..d79a5a64a --- /dev/null +++ b/test/Providers.GremlinServer.Tests/SerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/IntegrationTests.Length.verified.txt b/test/Providers.JanusGraph.Tests/IntegrationTests.Length.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/IntegrationTests.Length.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/IntegrationTests.Length_with_extension.verified.txt b/test/Providers.JanusGraph.Tests/IntegrationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/IntegrationTests.Length_with_extension.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/IntegrationTests.ToLower.verified.txt b/test/Providers.JanusGraph.Tests/IntegrationTests.ToLower.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/IntegrationTests.ToLower.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/IntegrationTests.ToLower_with_extension.verified.txt b/test/Providers.JanusGraph.Tests/IntegrationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/IntegrationTests.ToLower_with_extension.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/IntegrationTests.ToUpper.verified.txt b/test/Providers.JanusGraph.Tests/IntegrationTests.ToUpper.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/IntegrationTests.ToUpper.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/IntegrationTests.ToUpper_with_extension.verified.txt b/test/Providers.JanusGraph.Tests/IntegrationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..ad47dbb93 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/IntegrationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.Length.verified.txt b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.Length.verified.txt new file mode 100644 index 000000000..cc2aaccba --- /dev/null +++ b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.Length.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..4c44372f9 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToLower.verified.txt b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..77a0c3661 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToLower.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..8dd4cac56 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToUpper.verified.txt b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..a3afb267e --- /dev/null +++ b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToUpper.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..563f98aeb --- /dev/null +++ b/test/Providers.JanusGraph.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/SerializationTests.Length.verified.txt b/test/Providers.JanusGraph.Tests/SerializationTests.Length.verified.txt new file mode 100644 index 000000000..d01d23654 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/SerializationTests.Length.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/SerializationTests.Length_with_extension.verified.txt b/test/Providers.JanusGraph.Tests/SerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..a09514725 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/SerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/SerializationTests.ToLower.verified.txt b/test/Providers.JanusGraph.Tests/SerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..917b36ac4 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/SerializationTests.ToLower.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/SerializationTests.ToLower_with_extension.verified.txt b/test/Providers.JanusGraph.Tests/SerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..061f44523 --- /dev/null +++ b/test/Providers.JanusGraph.Tests/SerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/SerializationTests.ToUpper.verified.txt b/test/Providers.JanusGraph.Tests/SerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..a988fc77a --- /dev/null +++ b/test/Providers.JanusGraph.Tests/SerializationTests.ToUpper.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Providers.JanusGraph.Tests/SerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.JanusGraph.Tests/SerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..d79a5a64a --- /dev/null +++ b/test/Providers.JanusGraph.Tests/SerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.Length.verified.txt b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.Length.verified.txt new file mode 100644 index 000000000..341a2bbdf --- /dev/null +++ b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.Length.verified.txt @@ -0,0 +1,32 @@ +{ + SourceInstructions: [ + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.endpoint, + http://elastic.search.server + ] + }, + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.queryType, + query_string + ] + } + ], + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.Length_with_extension.verified.txt b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..2f246ec32 --- /dev/null +++ b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,29 @@ +{ + SourceInstructions: [ + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.endpoint, + http://elastic.search.server + ] + }, + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.queryType, + query_string + ] + } + ], + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToLower.verified.txt b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..3b0a289e9 --- /dev/null +++ b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToLower.verified.txt @@ -0,0 +1,32 @@ +{ + SourceInstructions: [ + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.endpoint, + http://elastic.search.server + ] + }, + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.queryType, + query_string + ] + } + ], + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToLower_with_extension.verified.txt b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..0af6ce787 --- /dev/null +++ b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,29 @@ +{ + SourceInstructions: [ + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.endpoint, + http://elastic.search.server + ] + }, + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.queryType, + query_string + ] + } + ], + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToUpper.verified.txt b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..346b1a079 --- /dev/null +++ b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToUpper.verified.txt @@ -0,0 +1,32 @@ +{ + SourceInstructions: [ + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.endpoint, + http://elastic.search.server + ] + }, + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.queryType, + query_string + ] + } + ], + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..ceaa95fdc --- /dev/null +++ b/test/Providers.Neptune.Tests/ElasticSearchSerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,29 @@ +{ + SourceInstructions: [ + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.endpoint, + http://elastic.search.server + ] + }, + { + OperatorName: withSideEffect, + Arguments: [ + Neptune#fts.queryType, + query_string + ] + } + ], + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/IntegrationTests.Length.verified.txt b/test/Providers.Neptune.Tests/IntegrationTests.Length.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.Neptune.Tests/IntegrationTests.Length.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/IntegrationTests.Length_with_extension.verified.txt b/test/Providers.Neptune.Tests/IntegrationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..179973b9b --- /dev/null +++ b/test/Providers.Neptune.Tests/IntegrationTests.Length_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + 7 +] \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/IntegrationTests.ToLower.verified.txt b/test/Providers.Neptune.Tests/IntegrationTests.ToLower.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.Neptune.Tests/IntegrationTests.ToLower.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/IntegrationTests.ToLower_with_extension.verified.txt b/test/Providers.Neptune.Tests/IntegrationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..c5dcb2a78 --- /dev/null +++ b/test/Providers.Neptune.Tests/IntegrationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + abcdefg +] \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/IntegrationTests.ToUpper.verified.txt b/test/Providers.Neptune.Tests/IntegrationTests.ToUpper.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.Neptune.Tests/IntegrationTests.ToUpper.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/IntegrationTests.ToUpper_with_extension.verified.txt b/test/Providers.Neptune.Tests/IntegrationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..5ffa3073c --- /dev/null +++ b/test/Providers.Neptune.Tests/IntegrationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,3 @@ +[ + ABCDEFG +] \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/RequestMessageSerializationTests.Length.verified.txt b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.Length.verified.txt new file mode 100644 index 000000000..cc2aaccba --- /dev/null +++ b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.Length.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..4c44372f9 --- /dev/null +++ b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToLower.verified.txt b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..77a0c3661 --- /dev/null +++ b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToLower.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..8dd4cac56 --- /dev/null +++ b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToUpper.verified.txt b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..a3afb267e --- /dev/null +++ b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToUpper.verified.txt @@ -0,0 +1,26 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..563f98aeb --- /dev/null +++ b/test/Providers.Neptune.Tests/RequestMessageSerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,23 @@ +{ + RequestId: 12345678-9012-3456-7890-123456789012, + Operation: bytecode, + Processor: traversal, + Arguments: { + aliases: { + g: g + }, + gremlin: { + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] + } + } +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/SerializationTests.Length.verified.txt b/test/Providers.Neptune.Tests/SerializationTests.Length.verified.txt new file mode 100644 index 000000000..d01d23654 --- /dev/null +++ b/test/Providers.Neptune.Tests/SerializationTests.Length.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/SerializationTests.Length_with_extension.verified.txt b/test/Providers.Neptune.Tests/SerializationTests.Length_with_extension.verified.txt new file mode 100644 index 000000000..a09514725 --- /dev/null +++ b/test/Providers.Neptune.Tests/SerializationTests.Length_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: length + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/SerializationTests.ToLower.verified.txt b/test/Providers.Neptune.Tests/SerializationTests.ToLower.verified.txt new file mode 100644 index 000000000..917b36ac4 --- /dev/null +++ b/test/Providers.Neptune.Tests/SerializationTests.ToLower.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/SerializationTests.ToLower_with_extension.verified.txt b/test/Providers.Neptune.Tests/SerializationTests.ToLower_with_extension.verified.txt new file mode 100644 index 000000000..061f44523 --- /dev/null +++ b/test/Providers.Neptune.Tests/SerializationTests.ToLower_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toLower + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/SerializationTests.ToUpper.verified.txt b/test/Providers.Neptune.Tests/SerializationTests.ToUpper.verified.txt new file mode 100644 index 000000000..a988fc77a --- /dev/null +++ b/test/Providers.Neptune.Tests/SerializationTests.ToUpper.verified.txt @@ -0,0 +1,16 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: asString + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/Providers.Neptune.Tests/SerializationTests.ToUpper_with_extension.verified.txt b/test/Providers.Neptune.Tests/SerializationTests.ToUpper_with_extension.verified.txt new file mode 100644 index 000000000..d79a5a64a --- /dev/null +++ b/test/Providers.Neptune.Tests/SerializationTests.ToUpper_with_extension.verified.txt @@ -0,0 +1,13 @@ +{ + StepInstructions: [ + { + OperatorName: inject, + Arguments: [ + aBcDeFg + ] + }, + { + OperatorName: toUpper + } + ] +} \ No newline at end of file diff --git a/test/PublicApi.Tests/PublicApiTests.Core.DotNet6_0.verified.cs b/test/PublicApi.Tests/PublicApiTests.Core.DotNet6_0.verified.cs index 4277764e9..94b2b6823 100644 --- a/test/PublicApi.Tests/PublicApiTests.Core.DotNet6_0.verified.cs +++ b/test/PublicApi.Tests/PublicApiTests.Core.DotNet6_0.verified.cs @@ -917,9 +917,12 @@ public interface IStringGremlinQuery : ExRam.Gremlinq.Core.IGremlinQuer { ExRam.Gremlinq.Core.IStringGremlinQuery Concat(params System.Func, ExRam.Gremlinq.Core.IGremlinQueryBase>[] stringTraversals); ExRam.Gremlinq.Core.IStringGremlinQuery Concat(params string[] strings); + ExRam.Gremlinq.Core.IGremlinQuery Length(); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(int startIndex); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(System.Range range); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(int startIndex, int length); + ExRam.Gremlinq.Core.IStringGremlinQuery ToLower(); + ExRam.Gremlinq.Core.IStringGremlinQuery ToUpper(); } public interface ITree { } public interface ITreeBuilder @@ -1655,9 +1658,12 @@ public static class StringGremlinQueryExtensions { public static ExRam.Gremlinq.Core.IStringGremlinQuery Concat(this ExRam.Gremlinq.Core.IGremlinQueryBase query, params System.Func, ExRam.Gremlinq.Core.IGremlinQueryBase>[] stringTraversals) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Concat(this ExRam.Gremlinq.Core.IGremlinQueryBase query, params string[] strings) { } + public static ExRam.Gremlinq.Core.IGremlinQuery Length(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, int startIndex) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, System.Range range) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, int startIndex, int length) { } + public static ExRam.Gremlinq.Core.IStringGremlinQuery ToLower(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } + public static ExRam.Gremlinq.Core.IStringGremlinQuery ToUpper(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } } public static class TransformerClassExtensions { @@ -2503,6 +2509,10 @@ public sealed class LabelStep : ExRam.Gremlinq.Core.Steps.Step public static readonly ExRam.Gremlinq.Core.Steps.LabelStep Instance; public LabelStep() { } } + public sealed class LengthStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.LengthStep Instance; + } public sealed class LimitStep : ExRam.Gremlinq.Core.Steps.Step { public static readonly ExRam.Gremlinq.Core.Steps.LimitStep LimitGlobal1; @@ -2777,6 +2787,14 @@ public sealed class TimesStep : ExRam.Gremlinq.Core.Steps.Step public TimesStep(int count) { } public int Count { get; } } + public sealed class ToLowerStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.ToLowerStep Instance; + } + public sealed class ToUpperStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.ToUpperStep Instance; + } public sealed class TreeStep : ExRam.Gremlinq.Core.Steps.Step { public static readonly ExRam.Gremlinq.Core.Steps.TreeStep Instance; diff --git a/test/PublicApi.Tests/PublicApiTests.Core.DotNet7_0.verified.cs b/test/PublicApi.Tests/PublicApiTests.Core.DotNet7_0.verified.cs index 4277764e9..94b2b6823 100644 --- a/test/PublicApi.Tests/PublicApiTests.Core.DotNet7_0.verified.cs +++ b/test/PublicApi.Tests/PublicApiTests.Core.DotNet7_0.verified.cs @@ -917,9 +917,12 @@ public interface IStringGremlinQuery : ExRam.Gremlinq.Core.IGremlinQuer { ExRam.Gremlinq.Core.IStringGremlinQuery Concat(params System.Func, ExRam.Gremlinq.Core.IGremlinQueryBase>[] stringTraversals); ExRam.Gremlinq.Core.IStringGremlinQuery Concat(params string[] strings); + ExRam.Gremlinq.Core.IGremlinQuery Length(); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(int startIndex); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(System.Range range); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(int startIndex, int length); + ExRam.Gremlinq.Core.IStringGremlinQuery ToLower(); + ExRam.Gremlinq.Core.IStringGremlinQuery ToUpper(); } public interface ITree { } public interface ITreeBuilder @@ -1655,9 +1658,12 @@ public static class StringGremlinQueryExtensions { public static ExRam.Gremlinq.Core.IStringGremlinQuery Concat(this ExRam.Gremlinq.Core.IGremlinQueryBase query, params System.Func, ExRam.Gremlinq.Core.IGremlinQueryBase>[] stringTraversals) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Concat(this ExRam.Gremlinq.Core.IGremlinQueryBase query, params string[] strings) { } + public static ExRam.Gremlinq.Core.IGremlinQuery Length(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, int startIndex) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, System.Range range) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, int startIndex, int length) { } + public static ExRam.Gremlinq.Core.IStringGremlinQuery ToLower(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } + public static ExRam.Gremlinq.Core.IStringGremlinQuery ToUpper(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } } public static class TransformerClassExtensions { @@ -2503,6 +2509,10 @@ public sealed class LabelStep : ExRam.Gremlinq.Core.Steps.Step public static readonly ExRam.Gremlinq.Core.Steps.LabelStep Instance; public LabelStep() { } } + public sealed class LengthStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.LengthStep Instance; + } public sealed class LimitStep : ExRam.Gremlinq.Core.Steps.Step { public static readonly ExRam.Gremlinq.Core.Steps.LimitStep LimitGlobal1; @@ -2777,6 +2787,14 @@ public sealed class TimesStep : ExRam.Gremlinq.Core.Steps.Step public TimesStep(int count) { } public int Count { get; } } + public sealed class ToLowerStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.ToLowerStep Instance; + } + public sealed class ToUpperStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.ToUpperStep Instance; + } public sealed class TreeStep : ExRam.Gremlinq.Core.Steps.Step { public static readonly ExRam.Gremlinq.Core.Steps.TreeStep Instance; diff --git a/test/PublicApi.Tests/PublicApiTests.Core.DotNet8_0.verified.cs b/test/PublicApi.Tests/PublicApiTests.Core.DotNet8_0.verified.cs index 4277764e9..94b2b6823 100644 --- a/test/PublicApi.Tests/PublicApiTests.Core.DotNet8_0.verified.cs +++ b/test/PublicApi.Tests/PublicApiTests.Core.DotNet8_0.verified.cs @@ -917,9 +917,12 @@ public interface IStringGremlinQuery : ExRam.Gremlinq.Core.IGremlinQuer { ExRam.Gremlinq.Core.IStringGremlinQuery Concat(params System.Func, ExRam.Gremlinq.Core.IGremlinQueryBase>[] stringTraversals); ExRam.Gremlinq.Core.IStringGremlinQuery Concat(params string[] strings); + ExRam.Gremlinq.Core.IGremlinQuery Length(); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(int startIndex); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(System.Range range); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(int startIndex, int length); + ExRam.Gremlinq.Core.IStringGremlinQuery ToLower(); + ExRam.Gremlinq.Core.IStringGremlinQuery ToUpper(); } public interface ITree { } public interface ITreeBuilder @@ -1655,9 +1658,12 @@ public static class StringGremlinQueryExtensions { public static ExRam.Gremlinq.Core.IStringGremlinQuery Concat(this ExRam.Gremlinq.Core.IGremlinQueryBase query, params System.Func, ExRam.Gremlinq.Core.IGremlinQueryBase>[] stringTraversals) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Concat(this ExRam.Gremlinq.Core.IGremlinQueryBase query, params string[] strings) { } + public static ExRam.Gremlinq.Core.IGremlinQuery Length(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, int startIndex) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, System.Range range) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, int startIndex, int length) { } + public static ExRam.Gremlinq.Core.IStringGremlinQuery ToLower(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } + public static ExRam.Gremlinq.Core.IStringGremlinQuery ToUpper(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } } public static class TransformerClassExtensions { @@ -2503,6 +2509,10 @@ public sealed class LabelStep : ExRam.Gremlinq.Core.Steps.Step public static readonly ExRam.Gremlinq.Core.Steps.LabelStep Instance; public LabelStep() { } } + public sealed class LengthStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.LengthStep Instance; + } public sealed class LimitStep : ExRam.Gremlinq.Core.Steps.Step { public static readonly ExRam.Gremlinq.Core.Steps.LimitStep LimitGlobal1; @@ -2777,6 +2787,14 @@ public sealed class TimesStep : ExRam.Gremlinq.Core.Steps.Step public TimesStep(int count) { } public int Count { get; } } + public sealed class ToLowerStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.ToLowerStep Instance; + } + public sealed class ToUpperStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.ToUpperStep Instance; + } public sealed class TreeStep : ExRam.Gremlinq.Core.Steps.Step { public static readonly ExRam.Gremlinq.Core.Steps.TreeStep Instance; diff --git a/test/PublicApi.Tests/PublicApiTests.Core.DotNet9_0.verified.cs b/test/PublicApi.Tests/PublicApiTests.Core.DotNet9_0.verified.cs index 4277764e9..94b2b6823 100644 --- a/test/PublicApi.Tests/PublicApiTests.Core.DotNet9_0.verified.cs +++ b/test/PublicApi.Tests/PublicApiTests.Core.DotNet9_0.verified.cs @@ -917,9 +917,12 @@ public interface IStringGremlinQuery : ExRam.Gremlinq.Core.IGremlinQuer { ExRam.Gremlinq.Core.IStringGremlinQuery Concat(params System.Func, ExRam.Gremlinq.Core.IGremlinQueryBase>[] stringTraversals); ExRam.Gremlinq.Core.IStringGremlinQuery Concat(params string[] strings); + ExRam.Gremlinq.Core.IGremlinQuery Length(); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(int startIndex); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(System.Range range); ExRam.Gremlinq.Core.IStringGremlinQuery Substring(int startIndex, int length); + ExRam.Gremlinq.Core.IStringGremlinQuery ToLower(); + ExRam.Gremlinq.Core.IStringGremlinQuery ToUpper(); } public interface ITree { } public interface ITreeBuilder @@ -1655,9 +1658,12 @@ public static class StringGremlinQueryExtensions { public static ExRam.Gremlinq.Core.IStringGremlinQuery Concat(this ExRam.Gremlinq.Core.IGremlinQueryBase query, params System.Func, ExRam.Gremlinq.Core.IGremlinQueryBase>[] stringTraversals) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Concat(this ExRam.Gremlinq.Core.IGremlinQueryBase query, params string[] strings) { } + public static ExRam.Gremlinq.Core.IGremlinQuery Length(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, int startIndex) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, System.Range range) { } public static ExRam.Gremlinq.Core.IStringGremlinQuery Substring(this ExRam.Gremlinq.Core.IGremlinQueryBase query, int startIndex, int length) { } + public static ExRam.Gremlinq.Core.IStringGremlinQuery ToLower(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } + public static ExRam.Gremlinq.Core.IStringGremlinQuery ToUpper(this ExRam.Gremlinq.Core.IGremlinQueryBase query) { } } public static class TransformerClassExtensions { @@ -2503,6 +2509,10 @@ public sealed class LabelStep : ExRam.Gremlinq.Core.Steps.Step public static readonly ExRam.Gremlinq.Core.Steps.LabelStep Instance; public LabelStep() { } } + public sealed class LengthStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.LengthStep Instance; + } public sealed class LimitStep : ExRam.Gremlinq.Core.Steps.Step { public static readonly ExRam.Gremlinq.Core.Steps.LimitStep LimitGlobal1; @@ -2777,6 +2787,14 @@ public sealed class TimesStep : ExRam.Gremlinq.Core.Steps.Step public TimesStep(int count) { } public int Count { get; } } + public sealed class ToLowerStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.ToLowerStep Instance; + } + public sealed class ToUpperStep : ExRam.Gremlinq.Core.Steps.Step + { + public static readonly ExRam.Gremlinq.Core.Steps.ToUpperStep Instance; + } public sealed class TreeStep : ExRam.Gremlinq.Core.Steps.Step { public static readonly ExRam.Gremlinq.Core.Steps.TreeStep Instance; diff --git a/test/Tests.Infrastructure/QueryExecutionTest.cs b/test/Tests.Infrastructure/QueryExecutionTest.cs index 15ae29389..3adb5ea4b 100644 --- a/test/Tests.Infrastructure/QueryExecutionTest.cs +++ b/test/Tests.Infrastructure/QueryExecutionTest.cs @@ -2822,6 +2822,45 @@ public Task Substring12() => _g .Substring(6..^2) .Verify(); + [Fact] + public Task Length() => _g + .Inject("aBcDeFg") + .AsString() + .Length() + .Verify(); + + [Fact] + public Task Length_with_extension() => _g + .Inject("aBcDeFg") + .Length() + .Verify(); + + [Fact] + public Task ToUpper() => _g + .Inject("aBcDeFg") + .AsString() + .ToUpper() + .Verify(); + + [Fact] + public Task ToUpper_with_extension() => _g + .Inject("aBcDeFg") + .ToUpper() + .Verify(); + + [Fact] + public Task ToLower() => _g + .Inject("aBcDeFg") + .AsString() + .ToLower() + .Verify(); + + [Fact] + public Task ToLower_with_extension() => _g + .Inject("aBcDeFg") + .ToLower() + .Verify(); + [Fact] public virtual Task SumGlobal() => _g .V()