aboutsummaryrefslogtreecommitdiff
path: root/plugin/pprof/setup_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/pprof/setup_test.go')
-rw-r--r--plugin/pprof/setup_test.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugin/pprof/setup_test.go b/plugin/pprof/setup_test.go
index eaa4cb37e..276229379 100644
--- a/plugin/pprof/setup_test.go
+++ b/plugin/pprof/setup_test.go
@@ -14,11 +14,21 @@ func TestPProf(t *testing.T) {
{`pprof`, false},
{`pprof 1.2.3.4:1234`, false},
{`pprof :1234`, false},
- {`pprof {}`, true},
+ {`pprof :1234 -1`, true},
+ {`pprof {
+ }`, false},
{`pprof /foo`, true},
{`pprof {
a b
}`, true},
+ {`pprof { block
+ }`, false},
+ {`pprof :1234 {
+ block 20
+ }`, false},
+ {`pprof {
+ block 20 30
+ }`, true},
{`pprof
pprof`, true},
}