Przeglądaj źródła

goprotobuf: Use local imports for testdata package.

TBR=r
CC=golang-dev
http://codereview.appspot.com/5832043
David Symonds 14 lat temu
rodzic
commit
704096febc

+ 1 - 1
proto/all_test.go

@@ -43,8 +43,8 @@ import (
 	"testing"
 	"time"
 
+	. "./testdata"
 	. "code.google.com/p/goprotobuf/proto"
-	. "code.google.com/p/goprotobuf/proto/testdata"
 )
 
 var globalO *Buffer

+ 1 - 1
proto/clone_test.go

@@ -37,7 +37,7 @@ import (
 
 	"code.google.com/p/goprotobuf/proto"
 
-	pb "code.google.com/p/goprotobuf/proto/testdata"
+	pb "./testdata"
 )
 
 var cloneTestMessage = &pb.MyMessage{

+ 1 - 1
proto/equal_test.go

@@ -35,8 +35,8 @@ import (
 	"log"
 	"testing"
 
+	pb "./testdata"
 	. "code.google.com/p/goprotobuf/proto"
-	pb "code.google.com/p/goprotobuf/proto/testdata"
 )
 
 // Four identical base messages.

+ 1 - 1
proto/text_parser_test.go

@@ -35,8 +35,8 @@ import (
 	"reflect"
 	"testing"
 
+	. "./testdata"
 	. "code.google.com/p/goprotobuf/proto"
-	. "code.google.com/p/goprotobuf/proto/testdata"
 )
 
 type UnmarshalTextTest struct {

+ 1 - 1
proto/text_test.go

@@ -38,7 +38,7 @@ import (
 
 	"code.google.com/p/goprotobuf/proto"
 
-	pb "code.google.com/p/goprotobuf/proto/testdata"
+	pb "./testdata"
 )
 
 func newTestMessage() *pb.MyMessage {