MCPcopy Index your code
hub / github.com/docker/cli / TestCIDFileNoOPWithNoFilename

Function TestCIDFileNoOPWithNoFilename

cli/command/container/create_test.go:28–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func TestCIDFileNoOPWithNoFilename(t *testing.T) {
29 file, err := newCIDFile("")
30 assert.NilError(t, err)
31 assert.DeepEqual(t, &cidFile{}, file, cmp.AllowUnexported(cidFile{}))
32
33 assert.NilError(t, file.Write("id"))
34 assert.NilError(t, file.Close())
35}
36
37func TestNewCIDFileWhenFileAlreadyExists(t *testing.T) {
38 tempfile := fs.NewFile(t, "test-cid-file")

Callers

nothing calls this directly

Calls 3

newCIDFileFunction · 0.85
WriteMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…