@@ -12,20 +12,20 @@ import (
1212 "github.com/stretchr/testify/require"
1313)
1414
15- type testApiHostResolver struct {
15+ type testAPIHostResolver struct {
1616 baseURL string
1717}
1818
19- func (t testApiHostResolver ) BaseRESTURL (_ context.Context ) (* url.URL , error ) {
19+ func (t testAPIHostResolver ) BaseRESTURL (_ context.Context ) (* url.URL , error ) {
2020 return url .Parse (t .baseURL )
2121}
22- func (t testApiHostResolver ) GraphqlURL (_ context.Context ) (* url.URL , error ) {
22+ func (t testAPIHostResolver ) GraphqlURL (_ context.Context ) (* url.URL , error ) {
2323 return nil , nil
2424}
25- func (t testApiHostResolver ) UploadURL (_ context.Context ) (* url.URL , error ) {
25+ func (t testAPIHostResolver ) UploadURL (_ context.Context ) (* url.URL , error ) {
2626 return nil , nil
2727}
28- func (t testApiHostResolver ) RawURL (_ context.Context ) (* url.URL , error ) {
28+ func (t testAPIHostResolver ) RawURL (_ context.Context ) (* url.URL , error ) {
2929 return nil , nil
3030}
3131
@@ -166,7 +166,7 @@ func TestFetcher_FetchTokenScopes(t *testing.T) {
166166 defer server .Close ()
167167
168168 fetcher := NewFetcher (FetcherOptions {
169- APIHost : testApiHostResolver {baseURL : server .URL },
169+ APIHost : testAPIHostResolver {baseURL : server .URL },
170170 })
171171
172172 scopes , err := fetcher .FetchTokenScopes (context .Background (), "test-token" )
@@ -209,7 +209,7 @@ func TestFetcher_CustomHTTPClient(t *testing.T) {
209209
210210func TestFetcher_CustomAPIHost (t * testing.T ) {
211211 fetcher := NewFetcher (FetcherOptions {
212- APIHost : testApiHostResolver {baseURL : "https://api.github.enterprise.com" },
212+ APIHost : testAPIHostResolver {baseURL : "https://api.github.enterprise.com" },
213213 })
214214
215215 apiURL , err := fetcher .apiHost .BaseRESTURL (context .Background ())
@@ -225,7 +225,7 @@ func TestFetcher_ContextCancellation(t *testing.T) {
225225 defer server .Close ()
226226
227227 fetcher := NewFetcher (FetcherOptions {
228- APIHost : testApiHostResolver {baseURL : server .URL },
228+ APIHost : testAPIHostResolver {baseURL : server .URL },
229229 })
230230
231231 ctx , cancel := context .WithCancel (context .Background ())
0 commit comments