package operaSystem import ( "fmt" "testing" ) func TestFile_ByteToBase64(t *testing.T) { byteStr := []byte("hello world!") base64Str := operaSystem.ByteToBase64(byteStr) byteResult, _ := operaSystem.Base64ToByte(base64Str) fmt.Println(base64Str) fmt.Println(byteResult) } func TestOperaSystem_FileName(t *testing.T) { filePath := "./file.go" fileName := operaSystem.FileName(filePath) fmt.Println(fileName) } func TestOperaSystem_FileSize(t *testing.T) { filePath := "./file.go" fileSize := operaSystem.FileSize(filePath) fmt.Println(fileSize) } func TestOperaSystem_FileModTime(t *testing.T) { filePath := "./file1.go" fileModTime := operaSystem.FileModTime(filePath) fmt.Println(fileModTime) } func TestOperaSystem_FileMode(t *testing.T) { filePath := "./file.go" fileMode := operaSystem.FileMode(filePath) fmt.Println(fileMode) } func TestOperaSystem_IsDir(t *testing.T) { filePath := "./" isDir := operaSystem.IsDir(filePath) fmt.Println(isDir) }