From 12d83f201525816699fefd8e81c6c4c3513fff8b Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Tue, 14 Jan 2025 13:04:10 +0300 Subject: [PATCH] test: fix decoder and handlers tests --- internal/shutils/decoder/decoder_test.go | 6 +++--- internal/shutils/handlers/exec_test.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/shutils/decoder/decoder_test.go b/internal/shutils/decoder/decoder_test.go index b757581..f703764 100644 --- a/internal/shutils/decoder/decoder_test.go +++ b/internal/shutils/decoder/decoder_test.go @@ -27,10 +27,10 @@ import ( "strings" "testing" - "plemya-x.ru/alr/internal/shutils/decoder" - "plemya-x.ru/alr/pkg/distro" "mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/syntax" + "plemya-x.ru/alr/internal/shutils/decoder" + "plemya-x.ru/alr/pkg/distro" ) type BuildVars struct { @@ -56,7 +56,7 @@ const testScript = ` release=1 epoch=2 desc="Test package" - homepage='//https://gitea.plemya-x.ru/xpamych/ALR' + homepage='https://gitea.plemya-x.ru/xpamych/ALR' maintainer='Евгений Храмов ' architectures=('arm64' 'amd64') license=('GPL-3.0-or-later') diff --git a/internal/shutils/handlers/exec_test.go b/internal/shutils/handlers/exec_test.go index 56f38cd..de86030 100644 --- a/internal/shutils/handlers/exec_test.go +++ b/internal/shutils/handlers/exec_test.go @@ -23,11 +23,11 @@ import ( "strings" "testing" - "plemya-x.ru/alr/internal/shutils/handlers" - "plemya-x.ru/alr/internal/shutils/decoder" - "plemya-x.ru/alr/pkg/distro" "mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/syntax" + "plemya-x.ru/alr/internal/shutils/decoder" + "plemya-x.ru/alr/internal/shutils/handlers" + "plemya-x.ru/alr/pkg/distro" ) const testScript = ` @@ -89,7 +89,7 @@ func TestExecFuncs(t *testing.T) { t.Fatalf("Expected test() function to exist") } - eh := shutils.ExecFuncs{ + eh := handlers.ExecFuncs{ "test-cmd": func(hc interp.HandlerContext, name string, args []string) error { if name != "test-cmd" { t.Errorf("Expected name to be 'test-cmd', got '%s'", name)