From 1949ae29b4cbca26d26913da3f9ebc7d51a833be Mon Sep 17 00:00:00 2001 From: Nikitin Aleksandr Date: Mon, 11 Nov 2024 11:32:57 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20StringDa?= =?UTF-8?q?teTime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/loki/logic_loki_test.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 internal/logic/loki/logic_loki_test.go diff --git a/internal/logic/loki/logic_loki_test.go b/internal/logic/loki/logic_loki_test.go new file mode 100644 index 0000000..19dddcd --- /dev/null +++ b/internal/logic/loki/logic_loki_test.go @@ -0,0 +1,21 @@ +package loki + +import ( + "github.com/ManyakRus/starter/config_main" + "github.com/ManyakRus/telegram_loki/internal/config" + "github.com/ManyakRus/telegram_loki/internal/load_json" + "github.com/golang-module/carbon/v2" + "testing" + "time" +) + +func TestStart_period(t *testing.T) { + config_main.LoadENV_or_SettingsTXT() + config.FillSettings() + load_json.LoadJSON_All() + + Date2 := time.Now() + Date1 := carbon.CreateFromStdTime(Date2).AddMinutes(-200).StdTime() + Start_period(Date1, Date2) + +}