MCPcopy Create free account
hub / github.com/PuerkitoBio/fetchbot / CommandFor

Method CommandFor

fetch_test.go:61–70  ·  view source on GitHub ↗
(rawurl string)

Source from the content-addressed store, hash-verified

59}
60
61func (sh *spyHandler) CommandFor(rawurl string) Command {
62 sh.mu.Lock()
63 defer sh.mu.Unlock()
64 for _, c := range sh.cmds {
65 if c.URL().String() == rawurl {
66 return c
67 }
68 }
69 return nil
70}
71
72func (sh *spyHandler) ErrorFor(rawurl string) error {
73 sh.mu.Lock()

Callers 1

TestCustomCommandFunction · 0.95

Calls 1

URLMethod · 0.65

Tested by

no test coverage detected