This commit is contained in:
Rob Watson 2022-05-21 07:44:01 +02:00
parent 9767ad2331
commit 266af06be3
5 changed files with 4 additions and 7 deletions

View File

@ -10,7 +10,7 @@ import (
twitter "git.netflux.io/rob/elon-eats-my-tweets/twitter"
)
// TwitterAPIClient is an autogenerated mock type for the APIClient type
// TwitterAPIClient is an autogenerated mock type for the TwitterAPIClient type
type TwitterAPIClient struct {
mock.Mock
}

View File

@ -1,6 +1,7 @@
package httpserver
//go:generate mockery --recursive --srcpkg github.com/gorilla/sessions --name Store --structname SessionStore --filename SessionStore.go --output ../generated/mocks
//go:generate mockery --recursive --name TwitterAPIClient --filename TwitterAPIClient.go --output ../generated/mocks
import (
"context"
@ -22,8 +23,8 @@ const (
sessionName = "elon_session"
sessionKeyState = "state"
sessionKeyPkceVerifier = "pkce_verifier"
stateLen = 64
pkceVerifierLen = 64
stateLen = 256
pkceVerifierLen = 256
)
type TwitterAPIClient interface {

View File

@ -1 +0,0 @@
package httpserver

View File

@ -1 +0,0 @@
package httpserver

View File

@ -1,7 +1,5 @@
package twitter
//go:generate mockery --recursive --name APIClient --structname TwitterAPIClient --filename TwitterAPIClient.go --output ../generated/mocks
import (
"encoding/json"
"fmt"