BugCommentFileInput read from either from a file or from the standard input and extract a message
(fileName string)
| 108 | // BugCommentFileInput read from either from a file or from the standard input |
| 109 | // and extract a message |
| 110 | func BugCommentFileInput(fileName string) (string, error) { |
| 111 | raw, err := input.FromFile(fileName) |
| 112 | if err != nil { |
| 113 | return "", err |
| 114 | } |
| 115 | |
| 116 | return processComment(raw) |
| 117 | } |
| 118 | |
| 119 | func processComment(raw string) (string, error) { |
| 120 | lines := strings.Split(raw, "\n") |
nothing calls this directly
no test coverage detected