MCPcopy Index your code
hub / github.com/perkeep/perkeep / TestSizedBlobRefString

Function TestSizedBlobRefString

pkg/blob/ref_test.go:184–190  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

182}
183
184func TestSizedBlobRefString(t *testing.T) {
185 sr := SizedRef{Ref: MustParse("abc-1234"), Size: 456}
186 want := "[abc-1234; 456 bytes]"
187 if got := sr.String(); got != want {
188 t.Errorf("SizedRef.String() = %q, want %q", got, want)
189 }
190}
191
192func TestRefStringMinusOne(t *testing.T) {
193 br := MustParse("abc-1234")

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
MustParseFunction · 0.85

Tested by

no test coverage detected