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" 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 { type TwitterAPIClient struct {
mock.Mock mock.Mock
} }

View File

@ -1,6 +1,7 @@
package httpserver 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 --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 ( import (
"context" "context"
@ -22,8 +23,8 @@ const (
sessionName = "elon_session" sessionName = "elon_session"
sessionKeyState = "state" sessionKeyState = "state"
sessionKeyPkceVerifier = "pkce_verifier" sessionKeyPkceVerifier = "pkce_verifier"
stateLen = 64 stateLen = 256
pkceVerifierLen = 64 pkceVerifierLen = 256
) )
type TwitterAPIClient interface { 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 package twitter
//go:generate mockery --recursive --name APIClient --structname TwitterAPIClient --filename TwitterAPIClient.go --output ../generated/mocks
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"