From df0210c26c04b26e86ca119eb2fe60f89d8f54f3 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Wed, 22 Aug 2018 23:57:08 +0200 Subject: [PATCH] Rename testutils to testutil and move below prometheus dir `testutil` is more in line with stdlib naming conventions. The package should be below `prometheus` as it only provides utils to test exposition code, not to test HTTP client code. Signed-off-by: beorn7 --- testutils/testutils.go => prometheus/testutil/testutil.go | 2 +- .../testutils_test.go => prometheus/testutil/testutil_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename testutils/testutils.go => prometheus/testutil/testutil.go (99%) rename testutils/testutils_test.go => prometheus/testutil/testutil_test.go (99%) diff --git a/testutils/testutils.go b/prometheus/testutil/testutil.go similarity index 99% rename from testutils/testutils.go rename to prometheus/testutil/testutil.go index c732a03..562009c 100644 --- a/testutils/testutils.go +++ b/prometheus/testutil/testutil.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package testutils +package testutil import ( "bytes" diff --git a/testutils/testutils_test.go b/prometheus/testutil/testutil_test.go similarity index 99% rename from testutils/testutils_test.go rename to prometheus/testutil/testutil_test.go index 54bdf8e..773b94c 100644 --- a/testutils/testutils_test.go +++ b/prometheus/testutil/testutil_test.go @@ -1,4 +1,4 @@ -package testutils +package testutil import ( "testing"