[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: SERVER-49225 Test fixture for sbe::EExpression
Branch: master
https://github.com/mongodb/mongo/commit/c4e552d731362a49f9d4a7ed4e646cfc852958da

Generated at Thu Feb 08 05:19:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.