[WIP] Add unit test for SharpCoreDB using modern testing libraries - #2
Merged
Merged
Conversation
Co-authored-by: MPCoreDeveloper <37024522+MPCoreDeveloper@users.noreply.github.com>
MPCoreDeveloper
marked this pull request as ready for review
December 3, 2025 09:01
MPCoreDeveloper
approved these changes
Dec 3, 2025
Copilot stopped work on behalf of
MPCoreDeveloper due to an error
December 3, 2025 09:03
This was referenced Dec 5, 2025
MPCoreDeveloper
approved these changes
Dec 5, 2025
MPCoreDeveloper
pushed a commit
that referenced
this pull request
Aug 30, 2026
… hit path #2 SqlQueryValidator (runs on every query under the default Lenient mode):\n- ContainsStringLiterals: span scan instead of a per-query non-compiled Regex.IsMatch.\n- IsSafeStatement: case-insensitive span comparisons instead of Trim().ToUpperInvariant() allocation.\n- Named @(\\w+) placeholder regex is now static compiled.\n- warnings list allocated lazily (clean-query path allocates nothing).\n\n#3 QueryPlanCache: the hit path no longer reorders the LRU LinkedList (lock + O(n) scan on every query); LRU now reflects insertion order, removing per-query lock contention for concurrent readers.\n\nValidated: 1,509/1,509 tests green on net11.0.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan: Create comprehensive unit tests for SharpCoreDB
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.