yitsushi / go-misskey

Misskey Go SDK
GNU General Public License v3.0
48 stars 12 forks source link

Admin/Queue endpoints #78

Closed yitsushi closed 3 years ago

yitsushi commented 3 years ago

All Admin/Qeueue endpoints

Ability to create dynamic mock client with MakeMockClient. The mock client checks if function is there or not. If it's there it calls the function and uses the returned string as filename. If the returned string is empty, it falls back to the ResponseFile field.

Handle 404 as an error. If an endpoint call ends up with a 404 response, Client will return with an EndpointNotFound error.

Resolves #66

yitsushi commented 3 years ago

Follow-up issue: #77

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.6%) to 78.133% when pulling cde8c69fe66bfad73ea4ac6c0ab56719e1e1a358 on admin-queue into 9a4579bd044c4e33d136aa9a68e284ea38f7edde on main.