Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Go: improve tests for varargs flow#21269

Open
owen-mc wants to merge 6 commits intogithub:mainfrom
owen-mc:go/improve-tests-for-varargs-flow
Open

Go: improve tests for varargs flow#21269
owen-mc wants to merge 6 commits intogithub:mainfrom
owen-mc:go/improve-tests-for-varargs-flow

Conversation

@owen-mc
Copy link
Contributor

These tests were added in#18235 and#18275, but those two PRs were reverted in#18434. As a first step towards implementing them again now that we have proper post-update nodes and use-use flow I am committing these tests.

@owen-mcowen-mc requested a review froma team as acode ownerFebruary 4, 2026 13:44
CopilotAI review requested due to automatic review settingsFebruary 4, 2026 13:44
@owen-mcowen-mc added the no-change-note-requiredThis PR does not need a change note labelFeb 4, 2026
@github-actionsgithub-actionsbot added the Go labelFeb 4, 2026
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull request overview

This pull request reintroduces tests for varargs (variadic parameter) flow in Go that were previously reverted. The tests are being committed as a preparatory step for future implementation with proper post-update nodes and use-use flow.

Changes:

  • Added new test suiteVarArgsWithExternalFlow to test variadic parameters with external flow models
  • Enhanced existing test suites (VarArgsWithFunctionModels andVarArgs) with new test cases for variadic output parameters
  • Improved parameter naming inExternalValueFlow/completetest.ql for better clarity

Reviewed changes

Copilot reviewed 10 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithFunctionModels/vendor/github.com/nonexistent/test/stub.goAddedFunctionWithVarArgsOutParameter stub for testing variadic output parameters
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithFunctionModels/main.goAdded test cases for variadic out parameters and helper function for test infrastructure
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithFunctionModels/go.modUpdated Go version to 1.25
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithFunctionModels/Flows.qlAdded data flow model forFunctionWithVarArgsOutParameter
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithExternalFlow/vendor/modules.txtAdded vendor modules file for new test suite
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithExternalFlow/vendor/github.com/nonexistent/test/stub.goAdded stub functions for testing external flow with varargs
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithExternalFlow/main.goAdded comprehensive test cases for varargs with external flow models
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithExternalFlow/go.modAdded go.mod for new test suite with Go 1.25
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithExternalFlow/Flows.qlAdded query configuration for external flow tests
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithExternalFlow/Flows.ext.ymlAdded external flow models for summary, source, and sink models
go/ql/test/library-tests/semmle/go/dataflow/VarArgsWithExternalFlow/Flows.expectedAdded expected test results file
go/ql/test/library-tests/semmle/go/dataflow/VarArgs/main.goAdded test cases for variadic out parameters
go/ql/test/library-tests/semmle/go/dataflow/ExternalValueFlow/completetest.qlImproved parameter naming fromsrc tosource andsink

@owen-mcowen-mc requested a review froma teamFebruary 5, 2026 22:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

Gono-change-note-requiredThis PR does not need a change note

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@owen-mc

[8]ページ先頭

©2009-2026 Movatter.jp