Closed switchupcb closed 2 years ago
Dependent on none.
*Interaction Dependent.
Dependent on one.
Dependent on two.
Dependent on three+.
Rebase with working go.work
configuration commit.
The endpoints that have been added to the unused
map are generally understandable. A user state refers to the fact that the endpoint would only be test-able with the assistance of a user. However, using user-bots is a ban-able offence on Discord. As a result, these endpoints (interactions, etc) will not be added.
Using endpoints that require files would require the CICD pipeline to also involve those files. However, I do not want to include random image files in the repository. Even if a logo is added, it would not be the correct size required for those endpoints.
Using endpoints that involve creating state (i.e CreateGuild) have been removed to simplify the coverage test. Originally, the bot would create a guild. However, this would be hard to ensure that the action was realized without the addition of a complex state (such that a user can confirm the guild is created). Instead, the bot will start the coverage test with a Guild already provided, such that a user can monitor the test if required.
If OAUTH2 is not tested in the coverage test, then GetCurrentAuthorizationInformation
should also be excluded.
On the other hand, it seems disgo
is missing two endpoints: ModifyGuildMFALevel
, and CreateDM
. Either dasgo
is missing these endpoints, ordisgo
didn't mark them in the generate.go
file.
Following the above exclusions, the coverage test is as follows.
Dependent on one.
Dependent on two.
Dependent on three+.
This is a restart of #19. The following tasks need to be completed:
endpoints
map inmain.go
.findOrder
.coverage_test.go
using Copygen or otherwise. See files in #19 for example.Update: This pull request has added endpoints without dependencies and provided the basis of the coverage test. The full version of this feature will be continued in a future pull request.