src: use internal tests if possible

If a test can be placed in the same package ("internal"), it is placed
there. This facilitates testing of package-private details. Because of
dependency cycles some packages cannot be tested by internal tests.

R=golang-dev, rsc, mikioh.mikioh
CC=golang-dev, r
https://golang.org/cl/7323044
This commit is contained in:
Robin Eklind 2013-02-19 10:02:01 -05:00 committed by Russ Cox
parent d251fc39f2
commit d137a2cb56
13 changed files with 69 additions and 73 deletions

View file

@ -2,10 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package debug_test
package debug
import (
. "runtime/debug"
"strings"
"testing"
)