mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 14:15:12 +00:00
Enable pagination convention tests (#1659)
* Unskip pagination convention tests and rework exclusion property names Also exclude Obsolete methods from pagination convention tests * Reaction APIs appear to support pagination, flag to exclude for now and mark a TODO that they need implementing * Repository invitation APIs need pagination implemented * Exclude methods that use an alternative pagination approach * Migrations, Licenses and References all need pagination implemented * Pagination not supported for these methods (determined by API doc and poking the API) so exclude them from convention tests * These methods need renaming to GetAll * Rename offending RepositoryTrafficClient GetReferrers and GetPaths to GetAllReferrers and GetAllPaths * Rename offending RepositoryBranchesClient methods from Get to GetAll
This commit is contained in:
19
Octokit/Helpers/ExcludeFromPaginationNamingConventionTest.cs
Normal file
19
Octokit/Helpers/ExcludeFromPaginationNamingConventionTest.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public sealed class ExcludeFromPaginationNamingConventionTestAttribute : Attribute
|
||||
{
|
||||
public ExcludeFromPaginationNamingConventionTestAttribute()
|
||||
{
|
||||
}
|
||||
|
||||
public ExcludeFromPaginationNamingConventionTestAttribute(string note)
|
||||
{
|
||||
Note = note;
|
||||
}
|
||||
|
||||
public string Note { get; private set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user