From 0800c63c3bb9db2d6f5e081c16c5e0ce18f5762d Mon Sep 17 00:00:00 2001 From: Spyros Date: Thu, 28 Dec 2023 00:13:03 +0000 Subject: [PATCH] Update pkg/context/context_test.go Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- pkg/context/context_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/context/context_test.go b/pkg/context/context_test.go index 9b8d8b40b..38c2d6065 100644 --- a/pkg/context/context_test.go +++ b/pkg/context/context_test.go @@ -81,6 +81,7 @@ func TestExtractCodeLine(t *testing.T) { assert.Nil(t, err) assert.Equal(t, strings.Join(strings.Split(code, "\n")[17-DefaultLineRange:17+DefaultLineRange], "\n"), codeRange) } + func TestExtractCodeInvalidTarget(t *testing.T) { // target is ip, url or file that does not exist