We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670f4d7 commit c2dfd88Copy full SHA for c2dfd88
github/apps_installation_test.go
@@ -173,3 +173,29 @@ func TestAppsService_RevokeInstallationToken(t *testing.T) {
173
return client.Apps.RevokeInstallationToken(ctx)
174
})
175
}
176
+
177
+func TestListRepositories_Marshal(t *testing.T) {
178
+ testJSONMarshal(t, &ListRepositories{}, "{}")
179
180
+ u := &ListRepositories{
181
+ TotalCount: Int(1),
182
+ Repositories: []*Repository{
183
+ {
184
+ ID: Int64(1),
185
+ URL: String("u"),
186
+ Name: String("n"),
187
+ },
188
189
+ }
190
191
+ want := `{
192
+ "total_count": 1,
193
+ "repositories": [{
194
+ "id":1,
195
+ "name":"n",
196
+ "url":"u"
197
+ }]
198
+ }`
199
200
+ testJSONMarshal(t, u, want)
201
+}
0 commit comments