Further restructure

This commit is contained in:
Harshavardhana
2015-01-14 12:40:43 -08:00
parent 3178879b03
commit 68de9ac19e
37 changed files with 20 additions and 38 deletions

View File

@@ -1,11 +0,0 @@
all: build test
.PHONY: all
build:
@godep go build
test: build
@godep go test -race -coverprofile=cover.out
clean:
@rm -fv NEWFILE TESTPREFIX.* cover.out

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package gateway
package server
import (
"bytes"

View File

@@ -1,4 +1,4 @@
package gateway
package server
import (
"io/ioutil"

View File

@@ -27,8 +27,8 @@ import (
"strconv"
"strings"
"github.com/minio-io/minio/pkg/checksum/crc32c"
"github.com/minio-io/minio/pkg/storage"
"github.com/minio-io/minio/pkg/utils/checksum/crc32c"
)
type appendStorage struct {

View File

@@ -29,10 +29,10 @@ import (
"strconv"
"strings"
"github.com/minio-io/minio/pkg/fileutils/split"
"github.com/minio-io/minio/pkg/storage"
"github.com/minio-io/minio/pkg/storage/appendstorage"
"github.com/minio-io/minio/pkg/storage/erasure"
"github.com/minio-io/minio/pkg/utils/split"
"github.com/spaolacci/murmur3"
)

View File

@@ -52,9 +52,9 @@ func (s *MySuite) TestSplitStream(c *C) {
}
func (s *MySuite) TestFileSplitJoin(c *C) {
err := SplitFileWithPrefix("TESTFILE", 1024, "TESTPREFIX")
err := SplitFileWithPrefix("test-data/TESTFILE", 1024, "TESTPREFIX")
c.Assert(err, IsNil)
err = SplitFileWithPrefix("TESTFILE", 1024, "")
err = SplitFileWithPrefix("test-data/TESTFILE", 1024, "")
c.Assert(err, Not(IsNil))
devnull, err := os.OpenFile(os.DevNull, 2, os.ModeAppend)