(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestGenMdAliases(t *testing.T) { |
| 74 | buf := new(bytes.Buffer) |
| 75 | if err := genMarkdownCustom(aliasCmd, buf, nil); err != nil { |
| 76 | t.Fatal(err) |
| 77 | } |
| 78 | output := buf.String() |
| 79 | |
| 80 | checkStringContains(t, output, aliasCmd.Long) |
| 81 | checkStringContains(t, output, jsonCmd.Example) |
| 82 | checkStringContains(t, output, "ALIASES") |
| 83 | checkStringContains(t, output, "yoo") |
| 84 | checkStringContains(t, output, "foo") |
| 85 | } |
| 86 | |
| 87 | func TestGenMdJSONFields(t *testing.T) { |
| 88 | buf := new(bytes.Buffer) |
nothing calls this directly
no test coverage detected