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

Method appendLog

script/ghmock/store.go:207–209  ·  view source on GitHub ↗
(entries []loggedRequest)

Source from the content-addressed store, hash-verified

205}
206
207func (s *state) appendLog(entries []loggedRequest) error {
208 return appendJSONL(s.logPath(), entries)
209}
210
211func (s *state) readLog() ([]loggedRequest, error) {
212 return readJSONL[loggedRequest](s.logPath())

Callers 7

TestCmdSetAndResetFunction · 0.95
TestMockServerFunction · 0.95
TestCmdSetFunction · 0.95
TestCmdExportFunction · 0.95
TestCmdScaffoldFunction · 0.95
TestCmdLogFunction · 0.80
runAllFunction · 0.80

Calls 2

logPathMethod · 0.95
appendJSONLFunction · 0.85

Tested by 6

TestCmdSetAndResetFunction · 0.76
TestMockServerFunction · 0.76
TestCmdSetFunction · 0.76
TestCmdExportFunction · 0.76
TestCmdScaffoldFunction · 0.76
TestCmdLogFunction · 0.64