migueleliasweb / go-github-mock

A library to aid unittesting code that uses Golang's Github SDK
MIT License
98 stars 24 forks source link

DeleteReposGitRefsByOwnerByRepoByRef and /repos/test1/test1/git/refs/heads/test1 request for tests #14

Closed mariojose123 closed 2 years ago

mariojose123 commented 2 years ago

i am trying to test a function that calls client.Git.DeleteRef method , it uses /repos/test1/test1/git/refs/heads/test1 and for tests i use DeleteReposGitRefsByOwnerByRepoByRef as mock , the problem is that its not working as intented ,the error is “mock response not found for /repos/test1/test1/git/refs/heads/test1" that client.Git.DeleteRef generetes for my test.i don't know if it is a error or it isn't.

migueleliasweb commented 2 years ago

@mariojose123 did you manage to fix your problem?