(t *testing.T)
| 167 | } |
| 168 | |
| 169 | func TestResolveInputFlags_EmptyFilePath(t *testing.T) { |
| 170 | rctx := newTestRuntimeWithStdin(map[string]string{"markdown": "@ "}, "") |
| 171 | flags := []Flag{{Name: "markdown", Input: []string{File, Stdin}}} |
| 172 | |
| 173 | err := resolveInputFlags(rctx, flags) |
| 174 | if err == nil { |
| 175 | t.Fatal("expected error for empty file path") |
| 176 | } |
| 177 | vErr := assertValidationParam(t, err, "--markdown") |
| 178 | if !strings.Contains(vErr.Message, "file path cannot be empty after @") { |
| 179 | t.Errorf("unexpected error message: %q", vErr.Message) |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | func TestResolveInputFlags_EscapeAtSign(t *testing.T) { |
| 184 | rctx := newTestRuntimeWithStdin(map[string]string{"text": "@@mention someone"}, "") |
nothing calls this directly
no test coverage detected