MCPcopy Index your code
hub / github.com/coder/coder / objectPartsToSeq

Function objectPartsToSeq

coderd/x/chatd/chatdebug/model_internal_test.go:930–938  ·  view source on GitHub ↗
(parts []fantasy.ObjectStreamPart)

Source from the content-addressed store, hash-verified

928}
929
930func objectPartsToSeq(parts []fantasy.ObjectStreamPart) fantasy.ObjectStreamResponse {
931 return func(yield func(fantasy.ObjectStreamPart) bool) {
932 for _, part := range parts {
933 if !yield(part) {
934 return
935 }
936 }
937 }
938}
939
940func partsToSeq(parts []fantasy.StreamPart) fantasy.StreamResponse {
941 return func(yield func(fantasy.StreamPart) bool) {

Calls

no outgoing calls

Tested by

no test coverage detected