mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
test(plugin): improve test coverage for pprof (#7473)
Add tests for Startup/Shutdown methods and HTTP endpoints. Enhance setup tests with edge cases. Increases test coverage from 58% to 100%. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -29,6 +29,12 @@ func TestPProf(t *testing.T) {
|
||||
{`pprof {
|
||||
block 20 30
|
||||
}`, true},
|
||||
{`pprof {
|
||||
block invalid
|
||||
}`, true},
|
||||
{`pprof {
|
||||
unknown_property
|
||||
}`, true},
|
||||
{`pprof
|
||||
pprof`, true},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user