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

Commitcd9c1e4

Browse files
committed
Fix Test_GetIssue mock data - add missing User field
The assertion was already checking User.Login but the mock was incomplete
1 parent4d80d93 commitcd9c1e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎pkg/github/issues_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ func Test_GetIssue(t *testing.T) {
3636
Body:github.Ptr("This is a test issue"),
3737
State:github.Ptr("open"),
3838
HTMLURL:github.Ptr("https://github.com/owner/repo/issues/42"),
39+
User:&github.User{
40+
Login:github.Ptr("testuser"),
41+
},
3942
}
4043

4144
tests:= []struct {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp