kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/cp/cp_test.go

type FileType

const RegularFile

const SymLink

const RegexFile

func TestExtractFileSpec(t *testing.T) {}

func TestGetPrefix(t *testing.T) {}

func TestStripPathShortcuts(t *testing.T) {}

func TestIsDestRelative(t *testing.T) {}

func checkErr(t *testing.T, err error) {}

func TestTarUntar(t *testing.T) {}

func TestTarUntarWrongPrefix(t *testing.T) {}

func TestTarDestinationName(t *testing.T) {}

func TestBadTar(t *testing.T) {}

func TestCopyToPod(t *testing.T) {}

func TestCopyToPodNoPreserve(t *testing.T) {}

func TestValidate(t *testing.T) {}

func TestUntar(t *testing.T) {}

func TestUntar_SingleFile(t *testing.T) {}

func createTmpFile(t *testing.T, filepath, data string) {}

func cmpFileData(t *testing.T, filePath, data string) {}

type testWriter

func (t *testWriter) Write(p []byte) (n int, err error) {}