github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/tm-db/remotedb/proto/defspb_test.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: remotedb/proto/defs.proto
     3  
     4  package protodb
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
    10  	github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	math "math"
    13  	math_rand "math/rand"
    14  	testing "testing"
    15  	time "time"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  func TestBatchProto(t *testing.T) {
    24  	seed := time.Now().UnixNano()
    25  	popr := math_rand.New(math_rand.NewSource(seed))
    26  	p := NewPopulatedBatch(popr, false)
    27  	dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
    28  	if err != nil {
    29  		t.Fatalf("seed = %d, err = %v", seed, err)
    30  	}
    31  	msg := &Batch{}
    32  	if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
    33  		t.Fatalf("seed = %d, err = %v", seed, err)
    34  	}
    35  	littlefuzz := make([]byte, len(dAtA))
    36  	copy(littlefuzz, dAtA)
    37  	for i := range dAtA {
    38  		dAtA[i] = byte(popr.Intn(256))
    39  	}
    40  	if !p.Equal(msg) {
    41  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
    42  	}
    43  	if len(littlefuzz) > 0 {
    44  		fuzzamount := 100
    45  		for i := 0; i < fuzzamount; i++ {
    46  			littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
    47  			littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
    48  		}
    49  		// shouldn't panic
    50  		_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
    51  	}
    52  }
    53  
    54  func TestOperationProto(t *testing.T) {
    55  	seed := time.Now().UnixNano()
    56  	popr := math_rand.New(math_rand.NewSource(seed))
    57  	p := NewPopulatedOperation(popr, false)
    58  	dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
    59  	if err != nil {
    60  		t.Fatalf("seed = %d, err = %v", seed, err)
    61  	}
    62  	msg := &Operation{}
    63  	if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
    64  		t.Fatalf("seed = %d, err = %v", seed, err)
    65  	}
    66  	littlefuzz := make([]byte, len(dAtA))
    67  	copy(littlefuzz, dAtA)
    68  	for i := range dAtA {
    69  		dAtA[i] = byte(popr.Intn(256))
    70  	}
    71  	if !p.Equal(msg) {
    72  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
    73  	}
    74  	if len(littlefuzz) > 0 {
    75  		fuzzamount := 100
    76  		for i := 0; i < fuzzamount; i++ {
    77  			littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
    78  			littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
    79  		}
    80  		// shouldn't panic
    81  		_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
    82  	}
    83  }
    84  
    85  func TestEntityProto(t *testing.T) {
    86  	seed := time.Now().UnixNano()
    87  	popr := math_rand.New(math_rand.NewSource(seed))
    88  	p := NewPopulatedEntity(popr, false)
    89  	dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
    90  	if err != nil {
    91  		t.Fatalf("seed = %d, err = %v", seed, err)
    92  	}
    93  	msg := &Entity{}
    94  	if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
    95  		t.Fatalf("seed = %d, err = %v", seed, err)
    96  	}
    97  	littlefuzz := make([]byte, len(dAtA))
    98  	copy(littlefuzz, dAtA)
    99  	for i := range dAtA {
   100  		dAtA[i] = byte(popr.Intn(256))
   101  	}
   102  	if !p.Equal(msg) {
   103  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   104  	}
   105  	if len(littlefuzz) > 0 {
   106  		fuzzamount := 100
   107  		for i := 0; i < fuzzamount; i++ {
   108  			littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
   109  			littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
   110  		}
   111  		// shouldn't panic
   112  		_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
   113  	}
   114  }
   115  
   116  func TestNothingProto(t *testing.T) {
   117  	seed := time.Now().UnixNano()
   118  	popr := math_rand.New(math_rand.NewSource(seed))
   119  	p := NewPopulatedNothing(popr, false)
   120  	dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
   121  	if err != nil {
   122  		t.Fatalf("seed = %d, err = %v", seed, err)
   123  	}
   124  	msg := &Nothing{}
   125  	if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
   126  		t.Fatalf("seed = %d, err = %v", seed, err)
   127  	}
   128  	littlefuzz := make([]byte, len(dAtA))
   129  	copy(littlefuzz, dAtA)
   130  	for i := range dAtA {
   131  		dAtA[i] = byte(popr.Intn(256))
   132  	}
   133  	if !p.Equal(msg) {
   134  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   135  	}
   136  	if len(littlefuzz) > 0 {
   137  		fuzzamount := 100
   138  		for i := 0; i < fuzzamount; i++ {
   139  			littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
   140  			littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
   141  		}
   142  		// shouldn't panic
   143  		_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
   144  	}
   145  }
   146  
   147  func TestDomainProto(t *testing.T) {
   148  	seed := time.Now().UnixNano()
   149  	popr := math_rand.New(math_rand.NewSource(seed))
   150  	p := NewPopulatedDomain(popr, false)
   151  	dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
   152  	if err != nil {
   153  		t.Fatalf("seed = %d, err = %v", seed, err)
   154  	}
   155  	msg := &Domain{}
   156  	if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
   157  		t.Fatalf("seed = %d, err = %v", seed, err)
   158  	}
   159  	littlefuzz := make([]byte, len(dAtA))
   160  	copy(littlefuzz, dAtA)
   161  	for i := range dAtA {
   162  		dAtA[i] = byte(popr.Intn(256))
   163  	}
   164  	if !p.Equal(msg) {
   165  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   166  	}
   167  	if len(littlefuzz) > 0 {
   168  		fuzzamount := 100
   169  		for i := 0; i < fuzzamount; i++ {
   170  			littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
   171  			littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
   172  		}
   173  		// shouldn't panic
   174  		_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
   175  	}
   176  }
   177  
   178  func TestIteratorProto(t *testing.T) {
   179  	seed := time.Now().UnixNano()
   180  	popr := math_rand.New(math_rand.NewSource(seed))
   181  	p := NewPopulatedIterator(popr, false)
   182  	dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
   183  	if err != nil {
   184  		t.Fatalf("seed = %d, err = %v", seed, err)
   185  	}
   186  	msg := &Iterator{}
   187  	if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
   188  		t.Fatalf("seed = %d, err = %v", seed, err)
   189  	}
   190  	littlefuzz := make([]byte, len(dAtA))
   191  	copy(littlefuzz, dAtA)
   192  	for i := range dAtA {
   193  		dAtA[i] = byte(popr.Intn(256))
   194  	}
   195  	if !p.Equal(msg) {
   196  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   197  	}
   198  	if len(littlefuzz) > 0 {
   199  		fuzzamount := 100
   200  		for i := 0; i < fuzzamount; i++ {
   201  			littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
   202  			littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
   203  		}
   204  		// shouldn't panic
   205  		_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
   206  	}
   207  }
   208  
   209  func TestStatsProto(t *testing.T) {
   210  	seed := time.Now().UnixNano()
   211  	popr := math_rand.New(math_rand.NewSource(seed))
   212  	p := NewPopulatedStats(popr, false)
   213  	dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
   214  	if err != nil {
   215  		t.Fatalf("seed = %d, err = %v", seed, err)
   216  	}
   217  	msg := &Stats{}
   218  	if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
   219  		t.Fatalf("seed = %d, err = %v", seed, err)
   220  	}
   221  	littlefuzz := make([]byte, len(dAtA))
   222  	copy(littlefuzz, dAtA)
   223  	for i := range dAtA {
   224  		dAtA[i] = byte(popr.Intn(256))
   225  	}
   226  	if !p.Equal(msg) {
   227  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   228  	}
   229  	if len(littlefuzz) > 0 {
   230  		fuzzamount := 100
   231  		for i := 0; i < fuzzamount; i++ {
   232  			littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
   233  			littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
   234  		}
   235  		// shouldn't panic
   236  		_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
   237  	}
   238  }
   239  
   240  func TestInitProto(t *testing.T) {
   241  	seed := time.Now().UnixNano()
   242  	popr := math_rand.New(math_rand.NewSource(seed))
   243  	p := NewPopulatedInit(popr, false)
   244  	dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
   245  	if err != nil {
   246  		t.Fatalf("seed = %d, err = %v", seed, err)
   247  	}
   248  	msg := &Init{}
   249  	if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
   250  		t.Fatalf("seed = %d, err = %v", seed, err)
   251  	}
   252  	littlefuzz := make([]byte, len(dAtA))
   253  	copy(littlefuzz, dAtA)
   254  	for i := range dAtA {
   255  		dAtA[i] = byte(popr.Intn(256))
   256  	}
   257  	if !p.Equal(msg) {
   258  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   259  	}
   260  	if len(littlefuzz) > 0 {
   261  		fuzzamount := 100
   262  		for i := 0; i < fuzzamount; i++ {
   263  			littlefuzz[popr.Intn(len(littlefuzz))] = byte(popr.Intn(256))
   264  			littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
   265  		}
   266  		// shouldn't panic
   267  		_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
   268  	}
   269  }
   270  
   271  func TestBatchJSON(t *testing.T) {
   272  	seed := time.Now().UnixNano()
   273  	popr := math_rand.New(math_rand.NewSource(seed))
   274  	p := NewPopulatedBatch(popr, true)
   275  	marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
   276  	jsondata, err := marshaler.MarshalToString(p)
   277  	if err != nil {
   278  		t.Fatalf("seed = %d, err = %v", seed, err)
   279  	}
   280  	msg := &Batch{}
   281  	err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
   282  	if err != nil {
   283  		t.Fatalf("seed = %d, err = %v", seed, err)
   284  	}
   285  	if !p.Equal(msg) {
   286  		t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
   287  	}
   288  }
   289  func TestOperationJSON(t *testing.T) {
   290  	seed := time.Now().UnixNano()
   291  	popr := math_rand.New(math_rand.NewSource(seed))
   292  	p := NewPopulatedOperation(popr, true)
   293  	marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
   294  	jsondata, err := marshaler.MarshalToString(p)
   295  	if err != nil {
   296  		t.Fatalf("seed = %d, err = %v", seed, err)
   297  	}
   298  	msg := &Operation{}
   299  	err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
   300  	if err != nil {
   301  		t.Fatalf("seed = %d, err = %v", seed, err)
   302  	}
   303  	if !p.Equal(msg) {
   304  		t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
   305  	}
   306  }
   307  func TestEntityJSON(t *testing.T) {
   308  	seed := time.Now().UnixNano()
   309  	popr := math_rand.New(math_rand.NewSource(seed))
   310  	p := NewPopulatedEntity(popr, true)
   311  	marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
   312  	jsondata, err := marshaler.MarshalToString(p)
   313  	if err != nil {
   314  		t.Fatalf("seed = %d, err = %v", seed, err)
   315  	}
   316  	msg := &Entity{}
   317  	err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
   318  	if err != nil {
   319  		t.Fatalf("seed = %d, err = %v", seed, err)
   320  	}
   321  	if !p.Equal(msg) {
   322  		t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
   323  	}
   324  }
   325  func TestNothingJSON(t *testing.T) {
   326  	seed := time.Now().UnixNano()
   327  	popr := math_rand.New(math_rand.NewSource(seed))
   328  	p := NewPopulatedNothing(popr, true)
   329  	marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
   330  	jsondata, err := marshaler.MarshalToString(p)
   331  	if err != nil {
   332  		t.Fatalf("seed = %d, err = %v", seed, err)
   333  	}
   334  	msg := &Nothing{}
   335  	err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
   336  	if err != nil {
   337  		t.Fatalf("seed = %d, err = %v", seed, err)
   338  	}
   339  	if !p.Equal(msg) {
   340  		t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
   341  	}
   342  }
   343  func TestDomainJSON(t *testing.T) {
   344  	seed := time.Now().UnixNano()
   345  	popr := math_rand.New(math_rand.NewSource(seed))
   346  	p := NewPopulatedDomain(popr, true)
   347  	marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
   348  	jsondata, err := marshaler.MarshalToString(p)
   349  	if err != nil {
   350  		t.Fatalf("seed = %d, err = %v", seed, err)
   351  	}
   352  	msg := &Domain{}
   353  	err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
   354  	if err != nil {
   355  		t.Fatalf("seed = %d, err = %v", seed, err)
   356  	}
   357  	if !p.Equal(msg) {
   358  		t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
   359  	}
   360  }
   361  func TestIteratorJSON(t *testing.T) {
   362  	seed := time.Now().UnixNano()
   363  	popr := math_rand.New(math_rand.NewSource(seed))
   364  	p := NewPopulatedIterator(popr, true)
   365  	marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
   366  	jsondata, err := marshaler.MarshalToString(p)
   367  	if err != nil {
   368  		t.Fatalf("seed = %d, err = %v", seed, err)
   369  	}
   370  	msg := &Iterator{}
   371  	err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
   372  	if err != nil {
   373  		t.Fatalf("seed = %d, err = %v", seed, err)
   374  	}
   375  	if !p.Equal(msg) {
   376  		t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
   377  	}
   378  }
   379  func TestStatsJSON(t *testing.T) {
   380  	seed := time.Now().UnixNano()
   381  	popr := math_rand.New(math_rand.NewSource(seed))
   382  	p := NewPopulatedStats(popr, true)
   383  	marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
   384  	jsondata, err := marshaler.MarshalToString(p)
   385  	if err != nil {
   386  		t.Fatalf("seed = %d, err = %v", seed, err)
   387  	}
   388  	msg := &Stats{}
   389  	err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
   390  	if err != nil {
   391  		t.Fatalf("seed = %d, err = %v", seed, err)
   392  	}
   393  	if !p.Equal(msg) {
   394  		t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
   395  	}
   396  }
   397  func TestInitJSON(t *testing.T) {
   398  	seed := time.Now().UnixNano()
   399  	popr := math_rand.New(math_rand.NewSource(seed))
   400  	p := NewPopulatedInit(popr, true)
   401  	marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
   402  	jsondata, err := marshaler.MarshalToString(p)
   403  	if err != nil {
   404  		t.Fatalf("seed = %d, err = %v", seed, err)
   405  	}
   406  	msg := &Init{}
   407  	err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
   408  	if err != nil {
   409  		t.Fatalf("seed = %d, err = %v", seed, err)
   410  	}
   411  	if !p.Equal(msg) {
   412  		t.Fatalf("seed = %d, %#v !Json Equal %#v", seed, msg, p)
   413  	}
   414  }
   415  func TestBatchProtoText(t *testing.T) {
   416  	seed := time.Now().UnixNano()
   417  	popr := math_rand.New(math_rand.NewSource(seed))
   418  	p := NewPopulatedBatch(popr, true)
   419  	dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
   420  	msg := &Batch{}
   421  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   422  		t.Fatalf("seed = %d, err = %v", seed, err)
   423  	}
   424  	if !p.Equal(msg) {
   425  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   426  	}
   427  }
   428  
   429  func TestBatchProtoCompactText(t *testing.T) {
   430  	seed := time.Now().UnixNano()
   431  	popr := math_rand.New(math_rand.NewSource(seed))
   432  	p := NewPopulatedBatch(popr, true)
   433  	dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
   434  	msg := &Batch{}
   435  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   436  		t.Fatalf("seed = %d, err = %v", seed, err)
   437  	}
   438  	if !p.Equal(msg) {
   439  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   440  	}
   441  }
   442  
   443  func TestOperationProtoText(t *testing.T) {
   444  	seed := time.Now().UnixNano()
   445  	popr := math_rand.New(math_rand.NewSource(seed))
   446  	p := NewPopulatedOperation(popr, true)
   447  	dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
   448  	msg := &Operation{}
   449  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   450  		t.Fatalf("seed = %d, err = %v", seed, err)
   451  	}
   452  	if !p.Equal(msg) {
   453  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   454  	}
   455  }
   456  
   457  func TestOperationProtoCompactText(t *testing.T) {
   458  	seed := time.Now().UnixNano()
   459  	popr := math_rand.New(math_rand.NewSource(seed))
   460  	p := NewPopulatedOperation(popr, true)
   461  	dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
   462  	msg := &Operation{}
   463  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   464  		t.Fatalf("seed = %d, err = %v", seed, err)
   465  	}
   466  	if !p.Equal(msg) {
   467  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   468  	}
   469  }
   470  
   471  func TestEntityProtoText(t *testing.T) {
   472  	seed := time.Now().UnixNano()
   473  	popr := math_rand.New(math_rand.NewSource(seed))
   474  	p := NewPopulatedEntity(popr, true)
   475  	dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
   476  	msg := &Entity{}
   477  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   478  		t.Fatalf("seed = %d, err = %v", seed, err)
   479  	}
   480  	if !p.Equal(msg) {
   481  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   482  	}
   483  }
   484  
   485  func TestEntityProtoCompactText(t *testing.T) {
   486  	seed := time.Now().UnixNano()
   487  	popr := math_rand.New(math_rand.NewSource(seed))
   488  	p := NewPopulatedEntity(popr, true)
   489  	dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
   490  	msg := &Entity{}
   491  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   492  		t.Fatalf("seed = %d, err = %v", seed, err)
   493  	}
   494  	if !p.Equal(msg) {
   495  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   496  	}
   497  }
   498  
   499  func TestNothingProtoText(t *testing.T) {
   500  	seed := time.Now().UnixNano()
   501  	popr := math_rand.New(math_rand.NewSource(seed))
   502  	p := NewPopulatedNothing(popr, true)
   503  	dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
   504  	msg := &Nothing{}
   505  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   506  		t.Fatalf("seed = %d, err = %v", seed, err)
   507  	}
   508  	if !p.Equal(msg) {
   509  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   510  	}
   511  }
   512  
   513  func TestNothingProtoCompactText(t *testing.T) {
   514  	seed := time.Now().UnixNano()
   515  	popr := math_rand.New(math_rand.NewSource(seed))
   516  	p := NewPopulatedNothing(popr, true)
   517  	dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
   518  	msg := &Nothing{}
   519  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   520  		t.Fatalf("seed = %d, err = %v", seed, err)
   521  	}
   522  	if !p.Equal(msg) {
   523  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   524  	}
   525  }
   526  
   527  func TestDomainProtoText(t *testing.T) {
   528  	seed := time.Now().UnixNano()
   529  	popr := math_rand.New(math_rand.NewSource(seed))
   530  	p := NewPopulatedDomain(popr, true)
   531  	dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
   532  	msg := &Domain{}
   533  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   534  		t.Fatalf("seed = %d, err = %v", seed, err)
   535  	}
   536  	if !p.Equal(msg) {
   537  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   538  	}
   539  }
   540  
   541  func TestDomainProtoCompactText(t *testing.T) {
   542  	seed := time.Now().UnixNano()
   543  	popr := math_rand.New(math_rand.NewSource(seed))
   544  	p := NewPopulatedDomain(popr, true)
   545  	dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
   546  	msg := &Domain{}
   547  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   548  		t.Fatalf("seed = %d, err = %v", seed, err)
   549  	}
   550  	if !p.Equal(msg) {
   551  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   552  	}
   553  }
   554  
   555  func TestIteratorProtoText(t *testing.T) {
   556  	seed := time.Now().UnixNano()
   557  	popr := math_rand.New(math_rand.NewSource(seed))
   558  	p := NewPopulatedIterator(popr, true)
   559  	dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
   560  	msg := &Iterator{}
   561  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   562  		t.Fatalf("seed = %d, err = %v", seed, err)
   563  	}
   564  	if !p.Equal(msg) {
   565  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   566  	}
   567  }
   568  
   569  func TestIteratorProtoCompactText(t *testing.T) {
   570  	seed := time.Now().UnixNano()
   571  	popr := math_rand.New(math_rand.NewSource(seed))
   572  	p := NewPopulatedIterator(popr, true)
   573  	dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
   574  	msg := &Iterator{}
   575  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   576  		t.Fatalf("seed = %d, err = %v", seed, err)
   577  	}
   578  	if !p.Equal(msg) {
   579  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   580  	}
   581  }
   582  
   583  func TestStatsProtoText(t *testing.T) {
   584  	seed := time.Now().UnixNano()
   585  	popr := math_rand.New(math_rand.NewSource(seed))
   586  	p := NewPopulatedStats(popr, true)
   587  	dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
   588  	msg := &Stats{}
   589  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   590  		t.Fatalf("seed = %d, err = %v", seed, err)
   591  	}
   592  	if !p.Equal(msg) {
   593  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   594  	}
   595  }
   596  
   597  func TestStatsProtoCompactText(t *testing.T) {
   598  	seed := time.Now().UnixNano()
   599  	popr := math_rand.New(math_rand.NewSource(seed))
   600  	p := NewPopulatedStats(popr, true)
   601  	dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
   602  	msg := &Stats{}
   603  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   604  		t.Fatalf("seed = %d, err = %v", seed, err)
   605  	}
   606  	if !p.Equal(msg) {
   607  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   608  	}
   609  }
   610  
   611  func TestInitProtoText(t *testing.T) {
   612  	seed := time.Now().UnixNano()
   613  	popr := math_rand.New(math_rand.NewSource(seed))
   614  	p := NewPopulatedInit(popr, true)
   615  	dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
   616  	msg := &Init{}
   617  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   618  		t.Fatalf("seed = %d, err = %v", seed, err)
   619  	}
   620  	if !p.Equal(msg) {
   621  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   622  	}
   623  }
   624  
   625  func TestInitProtoCompactText(t *testing.T) {
   626  	seed := time.Now().UnixNano()
   627  	popr := math_rand.New(math_rand.NewSource(seed))
   628  	p := NewPopulatedInit(popr, true)
   629  	dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
   630  	msg := &Init{}
   631  	if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
   632  		t.Fatalf("seed = %d, err = %v", seed, err)
   633  	}
   634  	if !p.Equal(msg) {
   635  		t.Fatalf("seed = %d, %#v !Proto %#v", seed, msg, p)
   636  	}
   637  }
   638  
   639  //These tests are generated by github.com/gogo/protobuf/plugin/testgen