MCPcopy Create free account
hub / github.com/google/pprof / TestOptionsHaveHelp

Function TestOptionsHaveHelp

internal/driver/driver_test.go:1515–1528  ·  view source on GitHub ↗

TestOptionsHaveHelp tests that a help message is supplied for every selectable option.

(t *testing.T)

Source from the content-addressed store, hash-verified

1513// TestOptionsHaveHelp tests that a help message is supplied for every
1514// selectable option.
1515func TestOptionsHaveHelp(t *testing.T) {
1516 for _, f := range configFields {
1517 // Check all choices if this is a group, else check f.name.
1518 names := f.choices
1519 if len(names) == 0 {
1520 names = []string{f.name}
1521 }
1522 for _, name := range names {
1523 if _, ok := configHelp[name]; !ok {
1524 t.Errorf("missing help message for %q", name)
1525 }
1526 }
1527 }
1528}
1529
1530type testSymbolzMergeFetcher struct{}
1531

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…