12 lines
254 B
Go
12 lines
254 B
Go
package client
|
|
|
|
import "testing"
|
|
|
|
func TestInvalidURL(t *testing.T) {
|
|
err := AddRoute("http://localhost;8080", "/hi", "GET", "bash -c", "echo 'Hi' | kapow set /response/body")
|
|
if err == nil {
|
|
t.Error("expect to fail due invalid url")
|
|
t.Fail()
|
|
}
|
|
}
|