Skip to content

Commit 772d50f

Browse files
add remaining methods
1 parent 952ba5d commit 772d50f

File tree

5 files changed

+610
-9
lines changed

5 files changed

+610
-9
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ func main() {
2323
client := gogithubmockable.NewClient(gh)
2424

2525

26-
// Instead of client.Repositories, use client.GetRepositories()
27-
c.GetRepositories().Get(context.TODO(), "owner", "repo")
26+
// Instead of client.Repositories, use client.Repositories()
27+
c.Repositories().Get(context.TODO(), "owner", "repo")
2828
...
2929
}
3030
```
3131

32-
## TODO
33-
34-
- Copy remaining util methods on *github.Client (not services or opts)

client.gen.go

Lines changed: 249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package gogithubmockable_test
22

33
import (
4-
"context"
54
"testing"
65

76
gogithubmockable "github.com/connormckelvey/go-github-mockable"
@@ -13,7 +12,6 @@ func TestNewClient(t *testing.T) {
1312
g := github.NewClient(nil)
1413
var c gogithubmockable.ClientAPI
1514
c = gogithubmockable.NewClient(g)
16-
c.Repositories().Get(context.TODO(), "owner", "repo")
1715
_, ok := c.(*gogithubmockable.Client)
1816
assert.True(t, ok)
1917
}

0 commit comments

Comments
 (0)