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

Commita0e757a

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 parent9c527bf commita0e757a

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
@@ -38,6 +38,9 @@ func Test_GetIssue(t *testing.T) {
3838
Body:github.Ptr("This is a test issue"),
3939
State:github.Ptr("open"),
4040
HTMLURL:github.Ptr("https://github.com/owner/repo/issues/42"),
41+
User:&github.User{
42+
Login:github.Ptr("testuser"),
43+
},
4144
}
4245

4346
tests:= []struct {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp