MCPcopy Index your code
hub / github.com/gopherdata/gophernotes / handleIsCompleteRequest

Method handleIsCompleteRequest

kernel.go:418–431  ·  view source on GitHub ↗

handleIsCompleteRequest sends a is_complete_reply message.

(receipt msgReceipt)

Source from the content-addressed store, hash-verified

416
417// handleIsCompleteRequest sends a is_complete_reply message.
418func (kernel *Kernel) handleIsCompleteRequest(receipt msgReceipt) error {
419
420 // Extract the data from the request.
421 reqcontent := receipt.Msg.Content.(map[string]interface{})
422 code := reqcontent["code"].(string)
423 status, indent := checkComplete(code, kernel.ir)
424
425 return receipt.Reply("is_complete_reply",
426 isCompleteReply{
427 Status: status,
428 Indent: indent,
429 },
430 )
431}
432
433// handleExecuteRequest runs code from an execute_request method,
434// and sends the various reply messages.

Callers 1

handleShellMsgMethod · 0.95

Calls 2

checkCompleteFunction · 0.85
ReplyMethod · 0.80

Tested by

no test coverage detected