|
@@ -34,6 +34,17 @@ func TestSymbolzURL(t *testing.T) {
|
34
|
34
|
"http://host:8000/debug/pprof/profile?seconds=10": "http://host:8000/debug/pprof/symbol",
|
35
|
35
|
"http://host:8000/debug/pprof/heap": "http://host:8000/debug/pprof/symbol",
|
36
|
36
|
"http://some.host:8080/some/deeper/path/debug/pprof/endpoint?param=value": "http://some.host:8080/some/deeper/path/debug/pprof/symbol",
|
|
37
|
+ "http://host:8000/pprof/profile": "http://host:8000/pprof/symbol",
|
|
38
|
+ "http://host:8000/pprof/profile?seconds=15": "http://host:8000/pprof/symbol",
|
|
39
|
+ "http://host:8000/pprof/heap": "http://host:8000/pprof/symbol",
|
|
40
|
+ "http://host:8000/debug/pprof/block": "http://host:8000/debug/pprof/symbol",
|
|
41
|
+ "http://host:8000/debug/pprof/trace?seconds=5": "http://host:8000/debug/pprof/symbol",
|
|
42
|
+ "http://host:8000/debug/pprof/mutex": "http://host:8000/debug/pprof/symbol",
|
|
43
|
+ "http://host/whatever/pprof/heap": "http://host/whatever/pprof/symbol",
|
|
44
|
+ "http://host/whatever/pprof/growth": "http://host/whatever/pprof/symbol",
|
|
45
|
+ "http://host/whatever/pprof/profile": "http://host/whatever/pprof/symbol",
|
|
46
|
+ "http://host/whatever/pprof/pmuprofile": "http://host/whatever/pprof/symbol",
|
|
47
|
+ "http://host/whatever/pprof/contention": "http://host/whatever/pprof/symbol",
|
37
|
48
|
} {
|
38
|
49
|
if got := symbolz(try); got != want {
|
39
|
50
|
t.Errorf(`symbolz(%s)=%s, want "%s"`, try, got, want)
|