TestOptionsHaveHelp tests that a help message is supplied for every selectable option.
(t *testing.T)
| 1513 | // TestOptionsHaveHelp tests that a help message is supplied for every |
| 1514 | // selectable option. |
| 1515 | func 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 | |
| 1530 | type testSymbolzMergeFetcher struct{} |
| 1531 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…