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

Function TestTemp

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

Source from the content-addressed store, hash-verified

40}
41
42func TestTemp(t *testing.T) {
43 t.Parallel()
44
45 dataObj := newData(t, nil, nil)
46
47 one := dataObj.Temp().Path()
48 two := dataObj.Temp().Path()
49
50 assertive.IsEqual(t, one, two)
51 assertive.IsNotEqual(t, one, "")
52
53 t.Run("verify that subtest has an independent TempDir", func(t *testing.T) {
54 t.Parallel()
55
56 dataObj = newData(t, nil, nil)
57 three := dataObj.Temp().Path()
58 assertive.IsNotEqual(t, one, three)
59 })
60}
61
62func TestDataIdentifier(t *testing.T) {
63 t.Parallel()

Callers

nothing calls this directly

Calls 4

newDataFunction · 0.85
PathMethod · 0.65
TempMethod · 0.65
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…