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 (
"io"
@ -7,6 +7,8 @@ import (
"reflect"
"strings"
"testing"
. "github.com/tus/tusd"
)
type concatPartialStore struct {

View File

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

View File

@ -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 {

View File

@ -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{}

View File

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

View File

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

View File

@ -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 {

View File

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

View File

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