Add unit tests for operation name flow from client to server#4824
Merged
rockfordlhotka merged 2 commits intorocky/4359-method-flowfrom Feb 15, 2026
Merged
Add unit tests for operation name flow from client to server#4824rockfordlhotka merged 2 commits intorocky/4359-method-flowfrom
rockfordlhotka merged 2 commits intorocky/4359-method-flowfrom
Conversation
Co-authored-by: rockfordlhotka <2333134+rockfordlhotka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add flow operation names from client to server
Add unit tests for operation name flow from client to server
Feb 15, 2026
rockfordlhotka
added a commit
that referenced
this pull request
Feb 16, 2026
* #4359 Add name-based data portal operation dispatch Client computes deterministic operation names (e.g., "Fetch__Int32") from resolved method signatures and sends them through the wire protocol. The server uses these names for O(1) switch-based dispatch, falling back to criteria-based and then reflection-based dispatch for backwards compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Ignore claude local settings * Add unit tests for operation name flow from client to server (#4824) * Initial plan * Add unit tests for operation name flow from client to server Co-authored-by: rockfordlhotka <2333134+rockfordlhotka@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rockfordlhotka <2333134+rockfordlhotka@users.noreply.github.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: rockfordlhotka <2333134+rockfordlhotka@users.noreply.github.com>
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.
Description
Addresses #4359 comment requesting unit tests for the operation name flow feature.
Added comprehensive test coverage in
OperationNameFlowTests.cscovering:Operation Name Computation (10 tests)
"Fetch""Fetch__Int32","Fetch__Int32_String""Fetch__Int32Array""Fetch__List_1_Int32"End-to-End Flow (6 tests)
DataPortalOperationNameHelper.ComputeOperationName<T>()CriteriaRequest.OperationNamepropertyIDataPortalOperationNamedMapping.InvokeNamedOperationAsync()Test objects implement
IDataPortalOperationNamedMappingto verify the name-based dispatch path is invoked before fallback to legacy reflection-based dispatch.All tests pass. No regressions in existing data portal tests (89 tests).
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.