diff --git a/.gitignore b/.gitignore index d66edda..090a1f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ .idea .DS_Store -vendor diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index 4434b95..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,38 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/davecgh/go-spew" - packages = ["spew"] - revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" - version = "v1.1.1" - -[[projects]] - name = "github.com/pmezard/go-difflib" - packages = ["difflib"] - revision = "792786c7400a136282c1664665ae0a8db921c6c2" - version = "v1.0.0" - -[[projects]] - name = "github.com/stretchr/objx" - packages = ["."] - revision = "477a77ecc69700c7cdeb1fa9e129548e1c1c393c" - version = "v0.1.1" - -[[projects]] - name = "github.com/stretchr/testify" - packages = [ - ".", - "assert", - "http", - "mock" - ] - revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686" - version = "v1.2.2" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "be169e4daa2a47b59aed371a07ada7632a5330c09b4abbe31f8b915ad7c6ea69" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index 7410eca..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,3 +0,0 @@ -[[constraint]] - name = "github.com/stretchr/testify" - version = "1.2.2" diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..d226fe9 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Uniplaces + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vero/client_test.go b/vero/client_test.go index 315db45..c9915b9 100644 --- a/vero/client_test.go +++ b/vero/client_test.go @@ -5,8 +5,6 @@ import ( "net/http" "net/http/httptest" "testing" - - "github.com/stretchr/testify/assert" ) func TestClientCreation(t *testing.T) { @@ -168,6 +166,12 @@ func TestTrack(t *testing.T) { client.Track("booking-request", identity, data, extras) } +func assertEqual(t *testing.T, expected string, actual string) { + if expected != actual { + t.Errorf(`Expected: %v - Got: %v`, expected, actual) + } +} + func configureHandler( serverMux *http.ServeMux, t *testing.T, @@ -181,10 +185,10 @@ func configureHandler( buf := new(bytes.Buffer) buf.ReadFrom(r.Body) body := buf.String() - - assert.Equal(t, expectedRequestBody, body) - assert.Equal(t, endpoint, r.URL.Path) - assert.Equal(t, method, r.Method) + + assertEqual(t, expectedRequestBody, body) + assertEqual(t, endpoint, r.URL.Path) + assertEqual(t, method, r.Method) w.WriteHeader(http.StatusOK) w.Write([]byte{})