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

Commitd464ac1

Browse files
committed
redo category id var cast
1 parent2f95120 commitd464ac1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎pkg/github/discussions_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,27 +67,27 @@ func Test_ListDiscussions(t *testing.T) {
6767

6868
// Variables matching what GraphQL receives after JSON marshaling/unmarshaling
6969
varsListAll:=map[string]interface{}{
70-
"owner":"owner",
71-
"repo":"repo",
70+
"owner":githubv4.String("owner"),
71+
"repo":githubv4.String("repo"),
7272
"first":float64(30),
7373
"last":nil,
7474
"after":nil,
7575
"before":nil,
7676
}
7777

7878
varsRepoNotFound:=map[string]interface{}{
79-
"owner":"owner",
80-
"repo":"nonexistent-repo",
79+
"owner":githubv4.String("owner"),
80+
"repo":githubv4.String("nonexistent-repo"),
8181
"first":float64(30),
8282
"last":nil,
8383
"after":nil,
8484
"before":nil,
8585
}
8686

8787
varsDiscussionsFiltered:=map[string]interface{}{
88-
"owner":"owner",
89-
"repo":"repo",
90-
"categoryId":"DIC_kwDOABC123",
88+
"owner":githubv4.String("owner"),
89+
"repo":githubv4.String("repo"),
90+
"categoryId":githubv4.ID("DIC_kwDOABC123"),
9191
"first":float64(30),
9292
"last":nil,
9393
"after":nil,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp