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

Method discard

script/ghmock/server.go:114–119  ·  view source on GitHub ↗

discard forgets the requests and response positions recorded so far, such as anything gh did while printing its version.

()

Source from the content-addressed store, hash-verified

112// discard forgets the requests and response positions recorded so far, such as
113// anything gh did while printing its version.
114func (m *mockServer) discard() {
115 m.mu.Lock()
116 defer m.mu.Unlock()
117 m.requests = nil
118 m.cursors = map[string]int{}
119}
120
121func (m *mockServer) record(e loggedRequest) {
122 m.mu.Lock()

Callers 1

runBinaryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected