From cfabbf5ffb511b01b2c8c68bc1689c107c490eca Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 25 Dec 2015 22:33:27 +0100 Subject: [PATCH] Extract tests into tusd_test package --- concat_test.go | 4 +++- cors_test.go | 4 +++- get_test.go | 4 +++- handler_test.go | 4 +++- head_test.go | 4 +++- options_test.go | 4 +++- patch_test.go | 4 +++- post_test.go | 4 +++- terminate_test.go | 4 +++- 9 files changed, 27 insertions(+), 9 deletions(-) diff --git a/concat_test.go b/concat_test.go index 250ce6e..093107f 100644 --- a/concat_test.go +++ b/concat_test.go @@ -1,4 +1,4 @@ -package tusd +package tusd_test import ( "io" @@ -7,6 +7,8 @@ import ( "reflect" "strings" "testing" + + . "github.com/tus/tusd" ) type concatPartialStore struct { diff --git a/cors_test.go b/cors_test.go index c1b24ae..d1f0209 100644 --- a/cors_test.go +++ b/cors_test.go @@ -1,8 +1,10 @@ -package tusd +package tusd_test import ( "net/http" "testing" + + . "github.com/tus/tusd" ) func TestCORS(t *testing.T) { diff --git a/get_test.go b/get_test.go index 17907e1..5310854 100644 --- a/get_test.go +++ b/get_test.go @@ -1,4 +1,4 @@ -package tusd +package tusd_test import ( "io" @@ -6,6 +6,8 @@ import ( "os" "strings" "testing" + + . "github.com/tus/tusd" ) type getStore struct { diff --git a/handler_test.go b/handler_test.go index 6119b1b..54172b1 100644 --- a/handler_test.go +++ b/handler_test.go @@ -1,4 +1,4 @@ -package tusd +package tusd_test import ( "io" @@ -7,6 +7,8 @@ import ( "os" "strings" "testing" + + . "github.com/tus/tusd" ) type zeroStore struct{} diff --git a/head_test.go b/head_test.go index 9b809af..9b63b59 100644 --- a/head_test.go +++ b/head_test.go @@ -1,9 +1,11 @@ -package tusd +package tusd_test import ( "net/http" "os" "testing" + + . "github.com/tus/tusd" ) type headStore struct { diff --git a/options_test.go b/options_test.go index 3a718e2..8c7289b 100644 --- a/options_test.go +++ b/options_test.go @@ -1,8 +1,10 @@ -package tusd +package tusd_test import ( "net/http" "testing" + + . "github.com/tus/tusd" ) func TestOptions(t *testing.T) { diff --git a/patch_test.go b/patch_test.go index 7e24c72..1777e4d 100644 --- a/patch_test.go +++ b/patch_test.go @@ -1,4 +1,4 @@ -package tusd +package tusd_test import ( "io" @@ -7,6 +7,8 @@ import ( "os" "strings" "testing" + + . "github.com/tus/tusd" ) type patchStore struct { diff --git a/post_test.go b/post_test.go index 4606980..4010bc1 100644 --- a/post_test.go +++ b/post_test.go @@ -1,8 +1,10 @@ -package tusd +package tusd_test import ( "net/http" "testing" + + . "github.com/tus/tusd" ) type postStore struct { diff --git a/terminate_test.go b/terminate_test.go index efca8e1..a4a3935 100644 --- a/terminate_test.go +++ b/terminate_test.go @@ -1,8 +1,10 @@ -package tusd +package tusd_test import ( "net/http" "testing" + + . "github.com/tus/tusd" ) type terminateStore struct {