From e559ca80aec43e1226dd4ae15293bc3601554694 Mon Sep 17 00:00:00 2001 From: ZhuoQinghui <1302344380@qq.com> Date: Wed, 30 Oct 2024 18:26:33 +0800 Subject: [PATCH] test --- test/task_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/task_test.go diff --git a/test/task_test.go b/test/task_test.go new file mode 100644 index 0000000..0aa11da --- /dev/null +++ b/test/task_test.go @@ -0,0 +1,16 @@ +package test + +import ( + "acme-mana/src" + "log" + "path" + "testing" +) + +func TestA(t *testing.T) { + domain := src.GetAppConfig().Domains[0] + name := domain.Name + dir := src.GetAppConfig().CertDir + certDir := path.Join(dir, name) + log.Println(src.ValidExist(certDir, domain)) +}