Skip to content

Commit

Permalink
adding go mod (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
luthermonson authored Feb 3, 2020
1 parent 8a6f73c commit 054a36d
Show file tree
Hide file tree
Showing 32 changed files with 47 additions and 32 deletions.
2 changes: 1 addition & 1 deletion applicationcharge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/jarcoal/httpmock"
"github.com/shopspring/decimal"
"gopkg.in/jarcoal/httpmock.v1"
)

// applicationChargeTests tests if the fields are properly parsed.
Expand Down
2 changes: 1 addition & 1 deletion asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func assetTests(t *testing.T, asset Asset) {
Expand Down
2 changes: 1 addition & 1 deletion blog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func TestBlogList(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion collect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func collectTests(t *testing.T, collect Collect) {
Expand Down
2 changes: 1 addition & 1 deletion customcollection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func customCollectionTests(t *testing.T, collection CustomCollection) {
Expand Down
2 changes: 1 addition & 1 deletion customer_address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func verifyAddress(t *testing.T, address CustomerAddress) {
Expand Down
2 changes: 1 addition & 1 deletion customer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/jarcoal/httpmock"
"github.com/shopspring/decimal"
"gopkg.in/jarcoal/httpmock.v1"
)

func TestCustomerList(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion discount_code_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func TestDiscountCodeList(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions draft_order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"

"github.com/jarcoal/httpmock"
"github.com/shopspring/decimal"
)

Expand Down
2 changes: 1 addition & 1 deletion fulfillment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func FulfillmentTests(t *testing.T, fulfillment Fulfillment) {
Expand Down
9 changes: 9 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module github.com/bold-commerce/go-shopify

go 1.13

require (
github.com/google/go-querystring v1.0.0
github.com/jarcoal/httpmock v1.0.4
github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114
)
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/jarcoal/httpmock v1.0.4 h1:jp+dy/+nonJE4g4xbVtl9QdrUNbn6/3hDT5R4nDIZnA=
github.com/jarcoal/httpmock v1.0.4/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik=
github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114 h1:Pm6R878vxWWWR+Sa3ppsLce/Zq+JNTs6aVvRu13jv9A=
github.com/shopspring/decimal v0.0.0-20200105231215-408a2507e114/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
2 changes: 1 addition & 1 deletion goshopify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func imageTests(t *testing.T, image Image) {
Expand Down
2 changes: 1 addition & 1 deletion inventory_item_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func inventoryItemTests(t *testing.T, item *InventoryItem) {
Expand Down
2 changes: 1 addition & 1 deletion location_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func TestLocationServiceOp_List(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion metafield_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func MetafieldTests(t *testing.T, metafield Metafield) {
Expand Down
3 changes: 2 additions & 1 deletion oauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
"encoding/base64"
"errors"
"fmt"
"gopkg.in/jarcoal/httpmock.v1"
"net/http"

"github.com/jarcoal/httpmock"
)

func TestAppAuthorizeUrl(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/jarcoal/httpmock"
"github.com/shopspring/decimal"
"gopkg.in/jarcoal/httpmock.v1"
)

func orderTests(t *testing.T, order Order) {
Expand Down
2 changes: 1 addition & 1 deletion page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func pageTests(t *testing.T, page Page) {
Expand Down
2 changes: 1 addition & 1 deletion product_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func productTests(t *testing.T, product Product) {
Expand Down
2 changes: 1 addition & 1 deletion recurringapplicationcharge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/jarcoal/httpmock"
"github.com/shopspring/decimal"
"gopkg.in/jarcoal/httpmock.v1"
)

// recurringApplicationChargeTests tests if fields are properly parsed.
Expand Down
2 changes: 1 addition & 1 deletion redirect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func redirectTests(t *testing.T, redirect Redirect) {
Expand Down
2 changes: 1 addition & 1 deletion scripttag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func TestScriptTagList(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion shop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func TestShopGet(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion smartcollection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func smartCollectionTests(t *testing.T, collection SmartCollection) {
Expand Down
2 changes: 1 addition & 1 deletion storefrontaccesstoken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func storefrontAccessTokenTests(t *testing.T, StorefrontAccessToken StorefrontAccessToken) {
Expand Down
2 changes: 1 addition & 1 deletion theme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func getTheme() Theme {
Expand Down
2 changes: 1 addition & 1 deletion transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/jarcoal/httpmock"
"github.com/shopspring/decimal"
"gopkg.in/jarcoal/httpmock.v1"
)

func TransactionTests(t *testing.T, transaction Transaction) {
Expand Down
2 changes: 1 addition & 1 deletion usagecharge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/jarcoal/httpmock"
"github.com/shopspring/decimal"
"gopkg.in/jarcoal/httpmock.v1"
)

func usageChargeTests(t *testing.T, usageCharge UsageCharge) {
Expand Down
4 changes: 2 additions & 2 deletions variant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/jarcoal/httpmock"
"github.com/shopspring/decimal"
"gopkg.in/jarcoal/httpmock.v1"
)

func variantTests(t *testing.T, variant Variant) {
Expand Down Expand Up @@ -454,4 +454,4 @@ func variantTestsWithTaxCode(t *testing.T, variant Variant) {
t.Errorf("Variant.TaxCode returned %+v, expected %+v", variant.TaxCode, expectedTacCode)
}

}
}
2 changes: 1 addition & 1 deletion webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"gopkg.in/jarcoal/httpmock.v1"
"github.com/jarcoal/httpmock"
)

func webhookTests(t *testing.T, webhook Webhook) {
Expand Down

0 comments on commit 054a36d

Please sign in to comment.