MCPcopy Create free account
hub / github.com/devploit/nomore403 / TestReadURLsFromInput_NonExistentFile

Function TestReadURLsFromInput_NonExistentFile

cmd/output_test.go:38–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestReadURLsFromInput_NonExistentFile(t *testing.T) {
39 // A non-URL, non-file input should be returned as-is
40 urls := readURLsFromInput("not-a-url-or-file")
41 if len(urls) != 1 || urls[0] != "not-a-url-or-file" {
42 t.Fatalf("expected input returned as-is, got: %v", urls)
43 }
44}
45
46func TestOutputWriter_PlainText(t *testing.T) {
47 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

readURLsFromInputFunction · 0.85

Tested by

no test coverage detected