From de76bd806da8ed0c8d789597acc5475f6229e77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Fri, 13 Sep 2024 17:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E9=97=AA=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/wechat_cpn/internal/wechat_cpn_test.go | 8 ++++++++ plugins/wechat_redpack/internal/wechat_redpack_test.go | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/plugins/wechat_cpn/internal/wechat_cpn_test.go b/plugins/wechat_cpn/internal/wechat_cpn_test.go index ce7874b..75626ae 100644 --- a/plugins/wechat_cpn/internal/wechat_cpn_test.go +++ b/plugins/wechat_cpn/internal/wechat_cpn_test.go @@ -21,6 +21,14 @@ func config() []byte { return marshal } +func TestConfig(t *testing.T) { + t.Run("TestConfig", func(t *testing.T) { + c := config() + fmt.Printf("%+s\n", string(c)) + assert.NotEmpty(t, c) + }) +} + func TestOrder(t *testing.T) { request := &proto.OrderRequest{ Config: config(), diff --git a/plugins/wechat_redpack/internal/wechat_redpack_test.go b/plugins/wechat_redpack/internal/wechat_redpack_test.go index 496c915..77c4dca 100644 --- a/plugins/wechat_redpack/internal/wechat_redpack_test.go +++ b/plugins/wechat_redpack/internal/wechat_redpack_test.go @@ -21,6 +21,14 @@ func config() []byte { return marshal } +func TestConfig(t *testing.T) { + t.Run("TestConfig", func(t *testing.T) { + c := config() + fmt.Printf("%+s\n", string(c)) + assert.NotEmpty(t, c) + }) +} + func TestOrder(t *testing.T) { request := &proto.OrderRequest{ Config: config(),