-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dynamic Instrumentation] DEBUG-2365 Support string lexicographic com…
…parison (#5538) ## Summary of changes Allow the customer to use `<` `<=` `>` `>=` with strings in the EL ## Test coverage See tests in the PR
- Loading branch information
1 parent
bbac240
commit 9a4bfb5
Showing
61 changed files
with
874 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...sionsResources/Approvals/DebuggerExpressionLanguageTests.CompareStringAndInt.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Condition: | ||
Json: | ||
{ | ||
"gt": [ | ||
{ | ||
"getmember": [ | ||
{ | ||
"ref": "this" | ||
}, | ||
"String" | ||
] | ||
}, | ||
{ | ||
"getmember": [ | ||
{ | ||
"ref": "this" | ||
}, | ||
"IntNumber" | ||
] | ||
} | ||
] | ||
} | ||
Expression: ( | ||
scopeMember, | ||
scopeMember, | ||
scopeMember, | ||
exception, | ||
scopeMemberArray) => | ||
{ | ||
bool $dd_el_result; | ||
var this = (DebuggerExpressionLanguageTests.TestStruct)scopeMember.Value; | ||
var @return = (string)scopeMember.Value; | ||
var @duration = (TimeSpan)scopeMember.Value; | ||
var @exception = exception; | ||
var IntLocal = (int)scopeMemberArray[0].Value; | ||
var DoubleLocal = (double)scopeMemberArray[1].Value; | ||
var StringLocal = (string)scopeMemberArray[2].Value; | ||
var CollectionLocal = (List<string>)scopeMemberArray[3].Value; | ||
var DictionaryLocal = (Dictionary<string, string>)scopeMemberArray[4].Value; | ||
var NestedObjectLocal = (DebuggerExpressionLanguageTests.TestStruct.NestedObject)scopeMemberArray[5].Value; | ||
var NullLocal = (DebuggerExpressionLanguageTests.TestStruct.NestedObject)scopeMemberArray[6].Value; | ||
var BooleanValue = (bool)scopeMemberArray[7].Value; | ||
var Char = (char)scopeMemberArray[8].Value; | ||
var AnotherChar = (char)scopeMemberArray[9].Value; | ||
var IntArg = (int)scopeMemberArray[10].Value; | ||
var DoubleArg = (double)scopeMemberArray[11].Value; | ||
var StringArg = (string)scopeMemberArray[12].Value; | ||
var CollectionArg = (List<string>)scopeMemberArray[13].Value; | ||
var NestedObjectArg = (DebuggerExpressionLanguageTests.TestStruct.NestedObject)scopeMemberArray[14].Value; | ||
|
||
return true; | ||
} | ||
Result: True | ||
Errors: | ||
EvaluationError { Expression = this.String > this.IntNumber, Message = The binary operator GreaterThan is not defined for the types 'System.String' and 'System.Int32'. } |
Oops, something went wrong.