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:
Ville Vesilehto
2025-08-25 23:06:19 +03:00
committed by GitHub
parent d69dbd3357
commit f4ab4d9ed5
2 changed files with 169 additions and 0 deletions

View File

@@ -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},
}