diff --git a/generated/mocks/TwitterAPIClient.go b/generated/mocks/TwitterAPIClient.go index f4d0759..109b4c3 100644 --- a/generated/mocks/TwitterAPIClient.go +++ b/generated/mocks/TwitterAPIClient.go @@ -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 } diff --git a/httpserver/handler.go b/httpserver/handler.go index 0fb5f32..0cc663a 100644 --- a/httpserver/handler.go +++ b/httpserver/handler.go @@ -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 { diff --git a/httpserver/httpserver.go b/httpserver/httpserver.go deleted file mode 100644 index b482627..0000000 --- a/httpserver/httpserver.go +++ /dev/null @@ -1 +0,0 @@ -package httpserver diff --git a/httpserver/token.go b/httpserver/token.go deleted file mode 100644 index b482627..0000000 --- a/httpserver/token.go +++ /dev/null @@ -1 +0,0 @@ -package httpserver diff --git a/twitter/api.go b/twitter/api.go index b647f8b..f167807 100644 --- a/twitter/api.go +++ b/twitter/api.go @@ -1,7 +1,5 @@ package twitter -//go:generate mockery --recursive --name APIClient --structname TwitterAPIClient --filename TwitterAPIClient.go --output ../generated/mocks - import ( "encoding/json" "fmt"