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

assert request params and body in pull_request_test#95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
juruen merged 1 commit intomainfromjuruen/pr-assert
Apr 4, 2025

Conversation

juruen
Copy link
Collaborator

Context

Follow-up PR to#94 to continue improving our test coverage. These changes assert that the request parameters and body are correctly handled in thepull_request_test file.

@CopilotCopilotAI review requested due to automatic review settingsApril 4, 2025 10:12
Copy link
Contributor

@CopilotCopilotAI 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 PR improves test coverage for pull request operations by asserting that the request parameters and request body payloads are correctly handled.

  • Updates the HTTP client mock to use handler functions that verify query parameters and request bodies.
  • Adds assertions for various endpoints such as listing, merging, updating branches, and creating reviews/PRs.
Comments suppressed due to low confidence (2)

pkg/github/pullrequests_test.go:700

  • [nitpick] The test for updating the pull request branch using an empty request body may benefit from an explanatory comment clarifying why an empty body is expected.
expectRequestBody(t, map[string]interface{}{}).andThen(

pkg/github/pullrequests_test.go:1109

  • [nitpick] Consider verifying that the explicit use of float64 for the 'position' field is intentional; if the expected type is an integer, using an int literal (with a conversion if necessary) could improve clarity.
"position": float64(10),

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab.Learn more

@juruenjuruen merged commitca1a8f9 intomainApr 4, 2025
16 checks passed
@juruenjuruen deleted the juruen/pr-assert branchApril 4, 2025 11:57
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull requestApr 12, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@SamMorrowDrumsSamMorrowDrumsSamMorrowDrums approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@juruen@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp