[SERVER-49225] Create unittest fixture for SBE expression tests Created: 01/Jul/20 Updated: 29/Oct/23 Resolved: 19/Aug/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 4.5 Desired |
| Fix Version/s: | 4.7.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Anton Korshunov | Assignee: | Justin Seyster |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Query 2020-08-24 |
| Participants: |
| Description |
|
New expressions added to the SBE engine should come along with a unit test. To make unit testing of such expressions easier, we need to implement a base test fixture which would perform some basic set up and provide a helper method(s) to evaluate an expression and validate the results. The helper method should compile the given expression into a bytecode, set up the VM and the compilation context, execute the bytecode and return the result to the caller. |
| Comments |
| Comment by Githook User [ 19/Aug/20 ] |
|
Author: {'name': 'Justin Seyster', 'email': 'justin.seyster@mongodb.com', 'username': 'jseyster'}Message: |