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

Function partsToSeq

coderd/x/chatd/chatdebug/model_internal_test.go:940–948  ·  view source on GitHub ↗
(parts []fantasy.StreamPart)

Source from the content-addressed store, hash-verified

938}
939
940func partsToSeq(parts []fantasy.StreamPart) fantasy.StreamResponse {
941 return func(yield func(fantasy.StreamPart) bool) {
942 for _, part := range parts {
943 if !yield(part) {
944 return
945 }
946 }
947 }
948}
949
950func TestDebugModel_GenerateObject(t *testing.T) {
951 t.Parallel()

Calls

no outgoing calls

Tested by

no test coverage detected