Debian Codegraph @

pkg/input/wordlist_test.go

raw symbols SCIP
1 package inputscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/input`/
2
3 import (
4 "testingscip-go gomod github.com/golang/go/src go1.18 testing/"
5 )
6
7 func TestStripCommentsIgnoresCommentLinesscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/input`/TestStripCommentsIgnoresCommentLines().(t *testingscip-go gomod github.com/golang/go/src go1.18 testing/.Tscip-go gomod github.com/golang/go/src go1.18 testing/T#) {
8 text, _ := stripCommentsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/input`/stripComments().("# text")
9
10 if text != "" {
11 t.Errorfscip-go gomod github.com/golang/go/src go1.18 testing/common#Errorf().("Returned text was not a blank string")
12 }
13 }
14
15 func TestStripCommentsStripsCommentAfterTextscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/input`/TestStripCommentsStripsCommentAfterText().(t *testingscip-go gomod github.com/golang/go/src go1.18 testing/.Tscip-go gomod github.com/golang/go/src go1.18 testing/T#) {
16 text, _ := stripCommentsscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/input`/stripComments().("text # comment")
17
18 if text != "text" {
19 t.Errorfscip-go gomod github.com/golang/go/src go1.18 testing/common#Errorf().("Comment was not stripped or pre-comment text was not returned")
20 }
21 }