From 09117a0153dab4ffddd1d49b73866f9799af72ee Mon Sep 17 00:00:00 2001 From: MrLYC Date: Thu, 27 Oct 2022 10:24:05 +0800 Subject: [PATCH] refactor: move package demo out of package core --- {core/demo => demo}/benchmark_test.go | 2 +- {core/demo => demo}/client.go | 0 {core/demo => demo}/client_test.go | 2 +- {core/demo => demo}/demo_suite_test.go | 0 {core/demo => demo}/operation.go | 0 {core/demo => demo}/operation_test.go | 2 +- {core/demo => demo}/response.go | 0 7 files changed, 3 insertions(+), 3 deletions(-) rename {core/demo => demo}/benchmark_test.go (96%) rename {core/demo => demo}/client.go (100%) rename {core/demo => demo}/client_test.go (96%) rename {core/demo => demo}/demo_suite_test.go (100%) rename {core/demo => demo}/operation.go (100%) rename {core/demo => demo}/operation_test.go (98%) rename {core/demo => demo}/response.go (100%) diff --git a/core/demo/benchmark_test.go b/demo/benchmark_test.go similarity index 96% rename from core/demo/benchmark_test.go rename to demo/benchmark_test.go index de46aac..8db4b4d 100644 --- a/core/demo/benchmark_test.go +++ b/demo/benchmark_test.go @@ -18,7 +18,7 @@ import ( "testing" "github.com/TencentBlueKing/bk-apigateway-sdks/core/bkapi" - "github.com/TencentBlueKing/bk-apigateway-sdks/core/demo" + "github.com/TencentBlueKing/bk-apigateway-sdks/demo" ) type mockTransport struct { diff --git a/core/demo/client.go b/demo/client.go similarity index 100% rename from core/demo/client.go rename to demo/client.go diff --git a/core/demo/client_test.go b/demo/client_test.go similarity index 96% rename from core/demo/client_test.go rename to demo/client_test.go index d864a8b..82ac40b 100644 --- a/core/demo/client_test.go +++ b/demo/client_test.go @@ -17,7 +17,7 @@ import ( "github.com/TencentBlueKing/bk-apigateway-sdks/core/bkapi" "github.com/TencentBlueKing/bk-apigateway-sdks/core/define" - "github.com/TencentBlueKing/bk-apigateway-sdks/core/demo" + "github.com/TencentBlueKing/bk-apigateway-sdks/demo" ) var _ = Describe("Client", func() { diff --git a/core/demo/demo_suite_test.go b/demo/demo_suite_test.go similarity index 100% rename from core/demo/demo_suite_test.go rename to demo/demo_suite_test.go diff --git a/core/demo/operation.go b/demo/operation.go similarity index 100% rename from core/demo/operation.go rename to demo/operation.go diff --git a/core/demo/operation_test.go b/demo/operation_test.go similarity index 98% rename from core/demo/operation_test.go rename to demo/operation_test.go index e908897..72495b8 100644 --- a/core/demo/operation_test.go +++ b/demo/operation_test.go @@ -16,7 +16,7 @@ import ( . "github.com/onsi/gomega" "github.com/TencentBlueKing/bk-apigateway-sdks/core/bkapi" - "github.com/TencentBlueKing/bk-apigateway-sdks/core/demo" + "github.com/TencentBlueKing/bk-apigateway-sdks/demo" ) var _ = Describe("Operation", func() { diff --git a/core/demo/response.go b/demo/response.go similarity index 100% rename from core/demo/response.go rename to demo/response.go