()
| 59 | } |
| 60 | |
| 61 | func (a *artifactImpl) ReadIntoBuffer() ([]byte, error) { |
| 62 | streamChannel, err := a.channel.Send("stream") |
| 63 | if err != nil { |
| 64 | return nil, err |
| 65 | } |
| 66 | stream := fromChannel(streamChannel) |
| 67 | return stream.(*streamImpl).ReadAll() |
| 68 | } |
| 69 | |
| 70 | func newArtifact(parent *channelOwner, objectType string, guid string, initializer map[string]any) *artifactImpl { |
| 71 | artifact := &artifactImpl{} |
no test coverage detected