Extract tests into tusd_test package

This commit is contained in:
Marius 2015-12-25 22:33:27 +01:00
parent 14285e971d
commit cfabbf5ffb
9 changed files with 27 additions and 9 deletions

View File

@ -1,4 +1,4 @@
package tusd package tusd_test
import ( import (
"io" "io"
@ -7,6 +7,8 @@ import (
"reflect" "reflect"
"strings" "strings"
"testing" "testing"
. "github.com/tus/tusd"
) )
type concatPartialStore struct { type concatPartialStore struct {

View File

@ -1,8 +1,10 @@
package tusd package tusd_test
import ( import (
"net/http" "net/http"
"testing" "testing"
. "github.com/tus/tusd"
) )
func TestCORS(t *testing.T) { func TestCORS(t *testing.T) {

View File

@ -1,4 +1,4 @@
package tusd package tusd_test
import ( import (
"io" "io"
@ -6,6 +6,8 @@ import (
"os" "os"
"strings" "strings"
"testing" "testing"
. "github.com/tus/tusd"
) )
type getStore struct { type getStore struct {

View File

@ -1,4 +1,4 @@
package tusd package tusd_test
import ( import (
"io" "io"
@ -7,6 +7,8 @@ import (
"os" "os"
"strings" "strings"
"testing" "testing"
. "github.com/tus/tusd"
) )
type zeroStore struct{} type zeroStore struct{}

View File

@ -1,9 +1,11 @@
package tusd package tusd_test
import ( import (
"net/http" "net/http"
"os" "os"
"testing" "testing"
. "github.com/tus/tusd"
) )
type headStore struct { type headStore struct {

View File

@ -1,8 +1,10 @@
package tusd package tusd_test
import ( import (
"net/http" "net/http"
"testing" "testing"
. "github.com/tus/tusd"
) )
func TestOptions(t *testing.T) { func TestOptions(t *testing.T) {

View File

@ -1,4 +1,4 @@
package tusd package tusd_test
import ( import (
"io" "io"
@ -7,6 +7,8 @@ import (
"os" "os"
"strings" "strings"
"testing" "testing"
. "github.com/tus/tusd"
) )
type patchStore struct { type patchStore struct {

View File

@ -1,8 +1,10 @@
package tusd package tusd_test
import ( import (
"net/http" "net/http"
"testing" "testing"
. "github.com/tus/tusd"
) )
type postStore struct { type postStore struct {

View File

@ -1,8 +1,10 @@
package tusd package tusd_test
import ( import (
"net/http" "net/http"
"testing" "testing"
. "github.com/tus/tusd"
) )
type terminateStore struct { type terminateStore struct {