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