MCPcopy Index your code
hub / github.com/docker/docker-agent / TestDataURL

Function TestDataURL

pkg/runtime/sampling_test.go:216–221  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

214}
215
216func TestDataURL(t *testing.T) {
217 t.Parallel()
218
219 assert.Equal(t, "data:image/png;base64,UE5HQllURVM=", dataURL("image/png", []byte("PNGBYTES")))
220 assert.Equal(t, "data:application/octet-stream;base64,YQ==", dataURL("", []byte("a")))
221}

Callers

nothing calls this directly

Calls 1

dataURLFunction · 0.85

Tested by

no test coverage detected