File: missing_go_test.patch

package info (click to toggle)
thrift 0.20.0-1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 28,848 kB
  • sloc: cpp: 102,108; java: 26,959; ansic: 21,699; pascal: 15,014; cs: 10,382; python: 9,745; javascript: 9,618; ruby: 8,316; erlang: 7,360; php: 6,994; sh: 5,340; makefile: 3,992; perl: 3,351; yacc: 1,145; xml: 1,053; ml: 962; lisp: 664; lex: 322
file content (54 lines) | stat: -rw-r--r-- 1,298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Description: can't use these
 .
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Forwarded: no
Last-Update: 2023-07-02

---

--- a/test/go/src/common/clientserver_test.go
+++ b/test/go/src/common/clientserver_test.go
@@ -21,14 +21,10 @@ package common
 
 import (
 	"context"
-	"errors"
-	"reflect"
 	"sync"
 	"testing"
 
-	"github.com/golang/mock/gomock"
 
-	"github.com/apache/thrift/lib/go/thrift"
 	"github.com/apache/thrift/test/go/src/gen/thrifttest"
 )
 
@@ -61,6 +57,7 @@ func TestAllConnection(t *testing.T) {
 }
 
 func doUnit(t *testing.T, unit *test_unit) {
+/*
 	ctrl := gomock.NewController(t)
 	defer ctrl.Finish()
 	handler := NewMockThriftTest(ctrl)
@@ -84,6 +81,7 @@ func doUnit(t *testing.T, unit *test_uni
 	}
 	defer trans.Close()
 	callEverythingWithMock(t, client, handler)
+*/
 }
 
 var rmapmap = map[int32]map[int32]int32{
@@ -101,6 +99,7 @@ var xxs = &thrifttest.Xtruct{
 var xcept = &thrifttest.Xception{ErrorCode: 1001, Message: "some"}
 var defaultCtx = context.Background()
 
+/*
 func callEverythingWithMock(t *testing.T, client *thrifttest.ThriftTestClient, handler *MockThriftTest) {
 	u := thrift.Tuuid{
 		0x00, 0x11, 0x22, 0x33,
@@ -352,3 +351,4 @@ func callEverythingWithMock(t *testing.T
 		t.Errorf("Unexpected error in TestVoid() call: %s", err)
 	}
 }
+*/