Skip to content

Commit a77b2f4

Browse files
committed
Fix linting errors
1 parent 58cd74d commit a77b2f4

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
@@ -43,7 +43,7 @@ func Test_ListDiscussions(t *testing.T) {
4343
assert.ElementsMatch(t, toolDef.InputSchema.Required, []string{"owner", "repo"})
4444

4545
// mock for the call to list all categories: query struct, variables, response
46-
var q_cat struct {
46+
var qCat struct {
4747
Repository struct {
4848
DiscussionCategories struct {
4949
Nodes []struct {
@@ -58,19 +58,19 @@ func Test_ListDiscussions(t *testing.T) {
5858
} `graphql:"repository(owner: $owner, name: $repo)"`
5959
}
6060

61-
vars_cat := map[string]interface{}{
61+
varsCat := map[string]interface{}{
6262
"owner": githubv4.String("owner"),
6363
"repo": githubv4.String("repo"),
6464
"after": githubv4.String(""),
6565
}
6666

67-
vars_cat_invalid := map[string]interface{}{
67+
varsCatInvalid := map[string]interface{}{
6868
"owner": githubv4.String("invalid"),
6969
"repo": githubv4.String("repo"),
7070
"after": githubv4.String(""),
7171
}
7272

73-
mockResp_cat := githubv4mock.DataResponse(map[string]any{
73+
mockRespCat := githubv4mock.DataResponse(map[string]any{
7474
"repository": map[string]any{
7575
"discussionCategories": map[string]any{
7676
"nodes": []map[string]any{
@@ -81,7 +81,7 @@ func Test_ListDiscussions(t *testing.T) {
8181
},
8282
})
8383

84-
mockResp_cat_invalid := githubv4mock.ErrorResponse("repository not found")
84+
mockRespCatInvalid := githubv4mock.ErrorResponse("repository not found")
8585

8686
// mock for the call to ListDiscussions: query struct, variables, response
8787
var q struct {
@@ -139,8 +139,8 @@ func Test_ListDiscussions(t *testing.T) {
139139
"answered": githubv4.Boolean(false),
140140
}
141141

142-
catMatcher := githubv4mock.NewQueryMatcher(q_cat, vars_cat, mockResp_cat)
143-
catMatcherInvalid := githubv4mock.NewQueryMatcher(q_cat, vars_cat_invalid, mockResp_cat_invalid)
142+
catMatcher := githubv4mock.NewQueryMatcher(qCat, varsCat, mockRespCat)
143+
catMatcherInvalid := githubv4mock.NewQueryMatcher(qCat, varsCatInvalid, mockRespCatInvalid)
144144

145145
tests := []struct {
146146
name string

0 commit comments

Comments
 (0)