Преглед изворни кода

goprotobuf: Use local imports for testdata package.

TBR=r
CC=golang-dev
http://codereview.appspot.com/5832043
David Symonds пре 14 година
родитељ
комит
704096febc
5 измењених фајлова са 5 додато и 5 уклоњено
  1. 1 1
      proto/all_test.go
  2. 1 1
      proto/clone_test.go
  3. 1 1
      proto/equal_test.go
  4. 1 1
      proto/text_parser_test.go
  5. 1 1
      proto/text_test.go

+ 1 - 1
proto/all_test.go

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

+ 1 - 1
proto/clone_test.go

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

+ 1 - 1
proto/equal_test.go

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

+ 1 - 1
proto/text_parser_test.go

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

+ 1 - 1
proto/text_test.go

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