]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: move sortimports test directly to go/ast
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Mon, 7 Apr 2025 18:38:54 +0000 (20:38 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 7 Apr 2025 20:34:20 +0000 (13:34 -0700)
For some reason i have created a separate package instead
of using _test package. Let's move this test where it belongs.

Change-Id: Ib569ca433de1ef4e161b9d334125648e00b7d3c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/663555
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/ast/import_test.go [moved from src/go/ast/internal/tests/sortimports_test.go with 94% similarity]

similarity index 94%
rename from src/go/ast/internal/tests/sortimports_test.go
rename to src/go/ast/import_test.go
index 99f153cb104f181c7b80730c2aeee98ae2b803e5..02fde4efb927b31d4929650616a73cb3e4fff42e 100644 (file)
@@ -2,8 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Tests is a helper package to avoid cyclic dependency between go/ast and go/parser.
-package tests
+package ast_test
 
 import (
        "go/ast"