File: missing_go_test.patch

package info (click to toggle)
thrift 0.22.0-3
  • links: PTS
  • area: main
  • in suites: sid
  • size: 29,588 kB
  • sloc: cpp: 103,295; java: 26,996; ansic: 21,793; pascal: 15,437; php: 12,823; cs: 10,610; python: 9,733; javascript: 9,274; ruby: 8,316; erlang: 7,360; sh: 5,569; makefile: 4,203; perl: 3,351; yacc: 1,145; xml: 1,079; ml: 962; lisp: 664; lex: 322
file content (76 lines) | stat: -rw-r--r-- 1,981 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Description: can't use these as these are not yet pacakged
 Comment out these for now.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Forwarded: no
Last-Update: 2025-10-19

---

--- a/lib/go/test/Makefile.am
+++ b/lib/go/test/Makefile.am
@@ -123,7 +123,6 @@ check: gopath
 				./gopath/src/duplicateimportstest \
 				./gopath/src/equalstest \
 				./gopath/src/conflictargnamestest \
-				./gopath/src/processormiddlewaretest \
 				./gopath/src/clientmiddlewareexceptiontest \
 				./gopath/src/validatetest \
 				./gopath/src/forwardtypetest
--- a/test/go/Makefile.am
+++ b/test/go/Makefile.am
@@ -58,7 +58,7 @@ check: gopath genmock
 	$(GO) test -v ./src/gen/...
 
 genmock: gopath
-	sh genmock.sh
+	echo sh genmock.sh
 
 distdir:
 	$(MAKE) $(AM_MAKEFLAGS) distdir-am
--- a/test/go/src/common/clientserver_test.go
+++ b/test/go/src/common/clientserver_test.go
@@ -21,15 +21,9 @@ package common
 
 import (
 	"context"
-	"errors"
-	"fmt"
-	"reflect"
 	"sync"
 	"testing"
 
-	"github.com/golang/mock/gomock"
-
-	"github.com/apache/thrift/lib/go/thrift"
 	"github.com/apache/thrift/test/go/src/gen/thrifttest"
 )
 
@@ -62,6 +56,7 @@ func TestAllConnection(t *testing.T) {
 }
 
 func doUnit(t *testing.T, unit *test_unit) {
+/*
 	t.Run(fmt.Sprintf("%v", *unit), func(t *testing.T) {
 		ctrl := gomock.NewController(t)
 		defer ctrl.Finish()
@@ -87,6 +82,7 @@ func doUnit(t *testing.T, unit *test_uni
 		defer trans.Close()
 		callEverythingWithMock(t, client, handler)
 	})
+**/
 }
 
 var rmapmap = map[int32]map[int32]int32{
@@ -104,6 +100,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,
@@ -355,3 +352,4 @@ func callEverythingWithMock(t *testing.T
 		t.Errorf("Unexpected error in TestVoid() call: %s", err)
 	}
 }
+**/