Skip to content

Commit

Permalink
Merge pull request #479 from Jleagle/master
Browse files Browse the repository at this point in the history
techknowlogick authored Nov 5, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 2684001 + 309b7c2 commit f842162
Showing 87 changed files with 169 additions and 131 deletions.
2 changes: 1 addition & 1 deletion providers/amazon/amazon.go
Original file line number Diff line number Diff line change
@@ -5,12 +5,12 @@ package amazon
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/amazon/amazon_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package amazon_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/amazon"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/amazon/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package amazon_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/amazon"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/auth0/auth0.go
Original file line number Diff line number Diff line change
@@ -5,11 +5,10 @@ package auth0
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 2 additions & 1 deletion providers/auth0/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package auth0_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/auth0"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/battlenet/battlenet.go
Original file line number Diff line number Diff line change
@@ -5,11 +5,10 @@ package battlenet
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/battlenet/battlenet_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package battlenet_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/battlenet"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/battlenet/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package battlenet_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/battlenet"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/box/box.go
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ package box

import (
"encoding/json"
"fmt"
"io"
"net/http"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/box/box_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package box_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/box"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/box/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package box_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/box"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
5 changes: 3 additions & 2 deletions providers/cloudfoundry/cf_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package cloudfoundry_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/cloudfoundry"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/cloudfoundry/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cloudfoundry_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/cloudfoundry"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/dailymotion/dailymotion.go
Original file line number Diff line number Diff line change
@@ -5,12 +5,12 @@ package dailymotion
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/dailymotion/session.go
Original file line number Diff line number Diff line change
@@ -3,10 +3,11 @@ package dailymotion
import (
"encoding/json"
"errors"
"github.com/markbates/goth"
"golang.org/x/oauth2"
"strings"
"time"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)

// Session stores data during the auth process with Dailymotion.
3 changes: 2 additions & 1 deletion providers/dailymotion/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package dailymotion_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/dailymotion"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/deezer/deezer.go
Original file line number Diff line number Diff line change
@@ -6,12 +6,12 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/deezer/session.go
Original file line number Diff line number Diff line change
@@ -3,10 +3,11 @@ package deezer
import (
"encoding/json"
"errors"
"github.com/markbates/goth"
"golang.org/x/oauth2"
"strings"
"time"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)

// Session stores data during the auth process with Deezer.
3 changes: 2 additions & 1 deletion providers/deezer/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package deezer_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/deezer"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/digitalocean/digitalocean.go
Original file line number Diff line number Diff line change
@@ -5,11 +5,11 @@ package digitalocean
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/discord/session.go
Original file line number Diff line number Diff line change
@@ -3,10 +3,11 @@ package discord
import (
"encoding/json"
"errors"
"github.com/markbates/goth"
"golang.org/x/oauth2"
"strings"
"time"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)

// Session stores data during the auth process with Discord
3 changes: 1 addition & 2 deletions providers/dropbox/dropbox.go
Original file line number Diff line number Diff line change
@@ -5,13 +5,12 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"strings"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 1 addition & 2 deletions providers/eveonline/eveonline.go
Original file line number Diff line number Diff line change
@@ -5,11 +5,10 @@ package eveonline
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
2 changes: 1 addition & 1 deletion providers/fitbit/fitbit.go
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ package fitbit

import (
"encoding/json"
"fmt"
"io"
"net/http"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
2 changes: 1 addition & 1 deletion providers/gitea/gitea.go
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@ package gitea
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strconv"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 2 additions & 1 deletion providers/gitea/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package gitea_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/gitea"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/gitlab/gitlab.go
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@ package gitlab
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strconv"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 2 additions & 1 deletion providers/gitlab/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package gitlab_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/gitlab"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/gplus/gplus.go
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@ package gplus
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strings"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 1 addition & 2 deletions providers/heroku/heroku.go
Original file line number Diff line number Diff line change
@@ -4,11 +4,10 @@ package heroku

import (
"encoding/json"
"fmt"
"io"
"net/http"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/heroku/heroku_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package heroku_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/heroku"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/heroku/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package heroku_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/heroku"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
9 changes: 5 additions & 4 deletions providers/intercom/intercom_test.go
Original file line number Diff line number Diff line change
@@ -3,14 +3,15 @@ package intercom_test
import (
"encoding/json"
"fmt"
"github.com/gorilla/pat"
"github.com/markbates/goth"
"github.com/markbates/goth/providers/intercom"
"github.com/stretchr/testify/assert"
"net/http"
"net/http/httptest"
"os"
"testing"

"github.com/gorilla/pat"
"github.com/markbates/goth"
"github.com/markbates/goth/providers/intercom"
"github.com/stretchr/testify/assert"
)

type fetchUserPayload struct {
5 changes: 3 additions & 2 deletions providers/intercom/session.go
Original file line number Diff line number Diff line change
@@ -3,10 +3,11 @@ package intercom
import (
"encoding/json"
"errors"
"github.com/markbates/goth"
"golang.org/x/oauth2"
"strings"
"time"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)

// Session stores data during the auth process with intercom.
3 changes: 2 additions & 1 deletion providers/intercom/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package intercom_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/intercom"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/kakao/kakao.go
Original file line number Diff line number Diff line change
@@ -5,12 +5,11 @@ package kakao
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strconv"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 1 addition & 2 deletions providers/line/line.go
Original file line number Diff line number Diff line change
@@ -5,11 +5,10 @@ package line
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 2 additions & 1 deletion providers/mastodon/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package mastodon_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/mastodon"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
5 changes: 3 additions & 2 deletions providers/meetup/meetup.go
Original file line number Diff line number Diff line change
@@ -6,12 +6,13 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
"io"
"io/ioutil"
"net/http"
"strconv"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)

const (
5 changes: 3 additions & 2 deletions providers/meetup/meetup_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package meetup_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/meetup"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/meetup/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package meetup_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/meetup"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/nextcloud/nextcloud.go
Original file line number Diff line number Diff line change
@@ -5,12 +5,11 @@ package nextcloud
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
2 changes: 1 addition & 1 deletion providers/okta/okta.go
Original file line number Diff line number Diff line change
@@ -5,11 +5,11 @@ package okta
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 2 additions & 1 deletion providers/okta/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package okta_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/okta"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/onedrive/onedrive.go
Original file line number Diff line number Diff line change
@@ -5,13 +5,12 @@ package onedrive
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/onedrive/onedrive_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package onedrive_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/onedrive"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/onedrive/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package onedrive_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/onedrive"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
5 changes: 3 additions & 2 deletions providers/openidConnect/openidConnect_test.go
Original file line number Diff line number Diff line change
@@ -2,12 +2,13 @@ package openidConnect

import (
"fmt"
"github.com/markbates/goth"
"github.com/stretchr/testify/assert"
"net/http"
"net/http/httptest"
"os"
"testing"

"github.com/markbates/goth"
"github.com/stretchr/testify/assert"
)

var (
3 changes: 2 additions & 1 deletion providers/openidConnect/session_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package openidConnect

import (
"testing"

"github.com/markbates/goth"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/oura/oura.go
Original file line number Diff line number Diff line change
@@ -3,11 +3,10 @@ package oura

import (
"encoding/json"
"fmt"
"io"
"net/http"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 2 additions & 1 deletion providers/paypal/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package paypal_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/paypal"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
5 changes: 3 additions & 2 deletions providers/salesforce/salesforce_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package salesforce_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/salesforce"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/salesforce/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package salesforce_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/salesforce"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/seatalk/seatalk.go
Original file line number Diff line number Diff line change
@@ -3,13 +3,12 @@ package seatalk
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/seatalk/seatalk_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package seatalk_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/seatalk"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/seatalk/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package seatalk_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/seatalk"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/shopify/shopify.go
Original file line number Diff line number Diff line change
@@ -5,12 +5,11 @@ package shopify
import (
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"strconv"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 2 additions & 1 deletion providers/slack/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package slack_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/slack"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/slack/slack.go
Original file line number Diff line number Diff line change
@@ -5,12 +5,11 @@ package slack
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 2 additions & 1 deletion providers/soundcloud/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package soundcloud_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/soundcloud"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/soundcloud/soundcloud.go
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@ package soundcloud
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strconv"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/soundcloud/soundcloud_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package soundcloud_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/soundcloud"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/spotify/spotify.go
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ package spotify

import (
"encoding/json"
"fmt"
"io"
"net/http"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 2 additions & 1 deletion providers/steam/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package steam_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/steam"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
5 changes: 3 additions & 2 deletions providers/steam/steam_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package steam_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/steam"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
5 changes: 3 additions & 2 deletions providers/strava/strava.go
Original file line number Diff line number Diff line change
@@ -6,12 +6,13 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
"io"
"io/ioutil"
"net/http"
"net/url"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)

const (
3 changes: 2 additions & 1 deletion providers/stripe/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package stripe_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/stripe"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/stripe/stripe.go
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ package stripe

import (
"encoding/json"
"fmt"
"io"
"net/http"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/stripe/stripe_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package stripe_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/stripe"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 1 addition & 2 deletions providers/twitch/twitch.go
Original file line number Diff line number Diff line change
@@ -5,11 +5,10 @@ package twitch
import (
"encoding/json"
"errors"
"fmt"
"io"
"net/http"

"fmt"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)
3 changes: 1 addition & 2 deletions providers/twitter/twitter.go
Original file line number Diff line number Diff line change
@@ -6,11 +6,10 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"

"fmt"

"github.com/markbates/goth"
"github.com/mrjones/oauth"
"golang.org/x/oauth2"
3 changes: 1 addition & 2 deletions providers/twitterv2/twitterv2.go
Original file line number Diff line number Diff line change
@@ -6,11 +6,10 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"

"fmt"

"github.com/markbates/goth"
"github.com/mrjones/oauth"
"golang.org/x/oauth2"
3 changes: 2 additions & 1 deletion providers/uber/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package uber_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/uber"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/uber/uber.go
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ package uber

import (
"encoding/json"
"fmt"
"io"
"net/http"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/uber/uber_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package uber_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/uber"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/wepay/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package wepay_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/wepay"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/wepay/wepay.go
Original file line number Diff line number Diff line change
@@ -4,12 +4,12 @@ package wepay

import (
"encoding/json"
"fmt"
"io"
"net/http"
"strconv"
"strings"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/wepay/wepay_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package wepay_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/wepay"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/yahoo/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package yahoo_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/yahoo"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/yahoo/yahoo.go
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ package yahoo

import (
"encoding/json"
"fmt"
"io"
"net/http"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/yahoo/yahoo_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package yahoo_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/yahoo"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/yammer/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package yammer_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/yammer"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
5 changes: 3 additions & 2 deletions providers/yammer/yammer.go
Original file line number Diff line number Diff line change
@@ -7,11 +7,12 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
"io/ioutil"
"net/http"
"strconv"

"github.com/markbates/goth"
"golang.org/x/oauth2"
)

const (
5 changes: 3 additions & 2 deletions providers/yammer/yammer_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package yammer_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/yammer"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {
3 changes: 2 additions & 1 deletion providers/yandex/session_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package yandex_test

import (
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/yandex"
"github.com/stretchr/testify/assert"
"testing"
)

func Test_Implements_Session(t *testing.T) {
2 changes: 1 addition & 1 deletion providers/yandex/yandex.go
Original file line number Diff line number Diff line change
@@ -5,11 +5,11 @@ package yandex
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"

"fmt"
"github.com/markbates/goth"
"golang.org/x/oauth2"
)
5 changes: 3 additions & 2 deletions providers/yandex/yandex_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package yandex_test

import (
"os"
"testing"

"github.com/markbates/goth"
"github.com/markbates/goth/providers/yandex"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func Test_New(t *testing.T) {

0 comments on commit f842162

Please sign in to comment.