Skip to content

Commit 0343b70

Browse files
committed
internal/jsonrpc2/stack: move from internal/stack
It is used only by jsonrpc2's tests, via stacktest.NoLeak. Change-Id: Icf138a2b646bdf00252007f1cdf29f0e55201e2c Reviewed-on: https://go-review.googlesource.com/c/tools/+/686977 Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 8c9f4cc commit 0343b70

File tree

8 files changed

+4
-27
lines changed

8 files changed

+4
-27
lines changed

internal/jsonrpc2/jsonrpc2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
"golang.org/x/tools/internal/event/export/eventtest"
1818
"golang.org/x/tools/internal/jsonrpc2"
19-
"golang.org/x/tools/internal/stack/stacktest"
19+
"golang.org/x/tools/internal/jsonrpc2/stack/stacktest"
2020
)
2121

2222
var logRPC = flag.Bool("logrpc", false, "Enable jsonrpc2 communication logging")

internal/jsonrpc2/serve_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"testing"
1212
"time"
1313

14-
"golang.org/x/tools/internal/stack/stacktest"
14+
"golang.org/x/tools/internal/jsonrpc2/stack/stacktest"
1515
"golang.org/x/tools/internal/testenv"
1616
)
1717

File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/stack/stack_test.go renamed to internal/jsonrpc2/stack/stack_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"testing"
1111

12-
"golang.org/x/tools/internal/stack"
12+
"golang.org/x/tools/internal/jsonrpc2/stack"
1313
)
1414

1515
func TestProcess(t *testing.T) {

internal/stack/stacktest/stacktest.go renamed to internal/jsonrpc2/stack/stacktest/stacktest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"golang.org/x/tools/internal/stack"
11+
"golang.org/x/tools/internal/jsonrpc2/stack"
1212
)
1313

1414
// this is only needed to support pre 1.14 when testing.TB did not have Cleanup

internal/stack/gostacks/gostacks.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)