MCPcopy Create free account
hub / github.com/cli/cli / record

Method record

script/ghmock/server.go:121–129  ·  view source on GitHub ↗
(e loggedRequest)

Source from the content-addressed store, hash-verified

119}
120
121func (m *mockServer) record(e loggedRequest) {
122 m.mu.Lock()
123 defer m.mu.Unlock()
124 e.Seq = len(m.requests) + 1
125 if e.Time.IsZero() {
126 e.Time = time.Now().UTC()
127 }
128 m.requests = append(m.requests, e)
129}
130
131func (m *mockServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
132 if r.Method == http.MethodConnect {

Callers 4

ServeHTTPMethod · 0.95
tunnelMethod · 0.95
serveGitHTTPMethod · 0.95
sandbox.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected