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

Function TestReadURLsFromInput_SingleURL

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

Source from the content-addressed store, hash-verified

9)
10
11func TestReadURLsFromInput_SingleURL(t *testing.T) {
12 urls := readURLsFromInput("https://example.com/admin")
13 if len(urls) != 1 || urls[0] != "https://example.com/admin" {
14 t.Fatalf("expected single URL, got: %v", urls)
15 }
16}
17
18func TestReadURLsFromInput_FileInput(t *testing.T) {
19 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

readURLsFromInputFunction · 0.85

Tested by

no test coverage detected