MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / encodeGIF

Function encodeGIF

internal/attachments/processor_test.go:56–63  ·  view source on GitHub ↗
(t *testing.T, img image.Image)

Source from the content-addressed store, hash-verified

54}
55
56func encodeGIF(t *testing.T, img image.Image) []byte {
57 t.Helper()
58 var buf bytes.Buffer
59 if err := gif.Encode(&buf, img, nil); err != nil {
60 t.Fatalf("encode test GIF: %v", err)
61 }
62 return buf.Bytes()
63}
64
65func TestProcessor_Capabilities_PureGo(t *testing.T) {
66 p := NewProcessor()

Callers 1

Calls 1

EncodeMethod · 0.65

Tested by

no test coverage detected