(t *testing.T)
| 99 | } |
| 100 | |
| 101 | func TestGenManAliases(t *testing.T) { |
| 102 | buf := new(bytes.Buffer) |
| 103 | header := &GenManHeader{} |
| 104 | if err := renderMan(aliasCmd, header, buf); err != nil { |
| 105 | t.Fatal(err) |
| 106 | } |
| 107 | |
| 108 | output := buf.String() |
| 109 | |
| 110 | checkStringContains(t, output, translate(aliasCmd.Name())) |
| 111 | checkStringContains(t, output, "ALIASES") |
| 112 | checkStringContains(t, output, "foo") |
| 113 | checkStringContains(t, output, "yoo") |
| 114 | } |
| 115 | |
| 116 | func TestGenManJSONFields(t *testing.T) { |
| 117 | buf := new(bytes.Buffer) |
nothing calls this directly
no test coverage detected