MCPcopy
hub / github.com/kopia/kopia / oidForString

Function oidForString

internal/diff/diff_test.go:597–601  ·  view source on GitHub ↗
(t *testing.T, prefix content.IDPrefix, s string)

Source from the content-addressed store, hash-verified

595}
596
597func oidForString(t *testing.T, prefix content.IDPrefix, s string) object.ID {
598 t.Helper()
599
600 return oidForContent(t, prefix, []byte(s))
601}
602
603func oidForContent(t *testing.T, prefix content.IDPrefix, c []byte) object.ID {
604 t.Helper()

Calls 2

oidForContentFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected