Remove regexp for comment detection

This commit is contained in:
Simon Eskildsen
2013-08-21 13:04:52 -04:00
parent 4f0eb93696
commit 1dadca892a
2 changed files with 3 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func TestReadTargets(t *testing.T) {
lines := bytes.NewBufferString("GET http://lolcathost:9999/\n\n // HEAD http://lolcathost.com this is a comment \nHEAD http://lolcathost:9999/\n")
lines := bytes.NewBufferString("GET http://lolcathost:9999/\n\n // HEAD http://lolcathost.com this is a comment \nHEAD http://lolcathost:9999/\n")
targets, err := readTargets(lines)
if err != nil {
t.Fatalf("Couldn't parse valid source: %s", err)