MCPcopy Create free account
hub / github.com/containerd/nerdctl / TestDataIdentifier

Function TestDataIdentifier

mod/tigron/test/data_test.go:62–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func TestDataIdentifier(t *testing.T) {
63 t.Parallel()
64
65 dataObj := newData(t, nil, nil)
66
67 one := dataObj.Identifier()
68 two := dataObj.Identifier()
69
70 assertive.IsEqual(t, one, two)
71 assertive.HasPrefix(t, one, "testdataidentifier")
72
73 three := dataObj.Identifier("Some Add ∞ Funky∞Prefix")
74 assertive.HasPrefix(t, three, "testdataidentifier-some-add-funky-prefix")
75}
76
77func TestDataIdentifierThatIsReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyLong(
78 t *testing.T,

Callers

nothing calls this directly

Calls 2

newDataFunction · 0.85
IdentifierMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…