kubernetes/pkg/kubelet/kubeletconfig/util/files/files_test.go

const prefix

type file

func (f *file) write(fs utilfs.Filesystem, dir string) error {}

func (f *file) expect(fs utilfs.Filesystem, dir string) error {}

type test

func (c *test) write(t *testing.T, fs utilfs.Filesystem, dir string) {}

// you can optionally skip calling t.Errorf by passing a nil t, and process the
// returned errors instead
func (c *test) expect(t *testing.T, fs utilfs.Filesystem, dir string) []error {}

// run a test case, with an arbitrary function to execute between write and expect
// if c.fn is nil, errors from c.expect are checked against c.err, instead of errors
// from fn being checked against c.err
func (c *test) run(t *testing.T, fs utilfs.Filesystem) {}

// simple test of the above helper functions
func TestHelpers(t *testing.T) {}

func TestFileExists(t *testing.T) {}

func TestEnsureFile(t *testing.T) {}

// Note: This transitively tests WriteTmpFile
func TestReplaceFile(t *testing.T) {}

func TestDirExists(t *testing.T) {}

func TestEnsureDir(t *testing.T) {}

func TestWriteTempDir(t *testing.T) {}

func TestReplaceDir(t *testing.T) {}