From 43f1d3eeb32fb5fa982f03f9d9a211ee40fd248a Mon Sep 17 00:00:00 2001 From: Raphael Meyer Date: Sun, 30 Nov 2014 09:53:17 +0100 Subject: [PATCH] replace imports in travis config to not break to origin --- .travis.yml | 3 +++ assert/doc.go | 4 ++-- doc.go | 6 +++--- http/test_round_tripper.go | 2 +- mock/mock.go | 2 +- mock/mock_test.go | 2 +- package_test.go | 2 +- require/doc.go | 2 +- require/requirements.go | 2 +- suite/doc.go | 4 ++-- suite/suite.go | 2 +- suite/suite_test.go | 2 +- 12 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0595ddb..1eb1781 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,9 @@ go: - 1.3 - tip +before_install: + - find -iname "*.go" -type f -print0 | xargs -0 sed -i 's/stretchr\/testify/raphaelmeyer\/testify/g' + script: - go test -v ./... diff --git a/assert/doc.go b/assert/doc.go index 5bf9c8f..1c6de28 100644 --- a/assert/doc.go +++ b/assert/doc.go @@ -5,7 +5,7 @@ // The following is a complete example using assert in a standard test function: // import ( // "testing" -// "github.com/raphaelmeyer/testify/assert" +// "github.com/stretchr/testify/assert" // ) // // func TestSomething(t *testing.T) { @@ -21,7 +21,7 @@ // // import ( // "testing" -// "github.com/raphaelmeyer/testify/assert" +// "github.com/stretchr/testify/assert" // ) // // func TestSomething(t *testing.T) { diff --git a/doc.go b/doc.go index 7ba2bda..3bde65c 100644 --- a/doc.go +++ b/doc.go @@ -12,7 +12,7 @@ package testify import ( - _ "github.com/raphaelmeyer/testify/assert" - _ "github.com/raphaelmeyer/testify/http" - _ "github.com/raphaelmeyer/testify/mock" + _ "github.com/stretchr/testify/assert" + _ "github.com/stretchr/testify/http" + _ "github.com/stretchr/testify/mock" ) diff --git a/http/test_round_tripper.go b/http/test_round_tripper.go index b131845..b0ad545 100644 --- a/http/test_round_tripper.go +++ b/http/test_round_tripper.go @@ -1,7 +1,7 @@ package http import ( - "github.com/raphaelmeyer/testify/mock" + "github.com/stretchr/testify/mock" "net/http" ) diff --git a/mock/mock.go b/mock/mock.go index 4c9c787..f73fa25 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -3,7 +3,7 @@ package mock import ( "fmt" "github.com/stretchr/objx" - "github.com/raphaelmeyer/testify/assert" + "github.com/stretchr/testify/assert" "reflect" "runtime" "strings" diff --git a/mock/mock_test.go b/mock/mock_test.go index c8b0d1f..353d810 100644 --- a/mock/mock_test.go +++ b/mock/mock_test.go @@ -2,7 +2,7 @@ package mock import ( "errors" - "github.com/raphaelmeyer/testify/assert" + "github.com/stretchr/testify/assert" "testing" ) diff --git a/package_test.go b/package_test.go index 1550a4f..7ac5d6d 100644 --- a/package_test.go +++ b/package_test.go @@ -1,7 +1,7 @@ package testify import ( - "github.com/raphaelmeyer/testify/assert" + "github.com/stretchr/testify/assert" "testing" ) diff --git a/require/doc.go b/require/doc.go index 34b1c59..7b38438 100644 --- a/require/doc.go +++ b/require/doc.go @@ -5,7 +5,7 @@ // The following is a complete example using require in a standard test function: // import ( // "testing" -// "github.com/raphaelmeyer/testify/require" +// "github.com/stretchr/testify/require" // ) // // func TestSomething(t *testing.T) { diff --git a/require/requirements.go b/require/requirements.go index 7acabf5..6744d8b 100644 --- a/require/requirements.go +++ b/require/requirements.go @@ -1,7 +1,7 @@ package require import ( - "github.com/raphaelmeyer/testify/assert" + "github.com/stretchr/testify/assert" "time" ) diff --git a/suite/doc.go b/suite/doc.go index d8b8fd9..3731eaa 100644 --- a/suite/doc.go +++ b/suite/doc.go @@ -32,8 +32,8 @@ // // Basic imports // import ( // "testing" -// "github.com/raphaelmeyer/testify/assert" -// "github.com/raphaelmeyer/testify/suite" +// "github.com/stretchr/testify/assert" +// "github.com/stretchr/testify/suite" // ) // // // Define the suite, and absorb the built-in basic suite diff --git a/suite/suite.go b/suite/suite.go index 2d687e1..38ad423 100644 --- a/suite/suite.go +++ b/suite/suite.go @@ -8,7 +8,7 @@ import ( "regexp" "testing" - "github.com/raphaelmeyer/testify/assert" + "github.com/stretchr/testify/assert" ) var matchMethod = flag.String("m", "", "regular expression to select tests of the suite to run") diff --git a/suite/suite_test.go b/suite/suite_test.go index 67dae68..104b9f5 100644 --- a/suite/suite_test.go +++ b/suite/suite_test.go @@ -2,7 +2,7 @@ package suite import ( "errors" - "github.com/raphaelmeyer/testify/assert" + "github.com/stretchr/testify/assert" "io/ioutil" "os" "testing"