crosdisks

package
v0.0.0-...-9474aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

Package crosdisks provides a series of tests to verify CrosDisks' D-Bus API behavior.

Package crosdisks provides a series of tests to verify CrosDisks' D-Bus API behavior.

Package crosdisks provides a series of tests to verify CrosDisks' D-Bus API behavior.

Package crosdisks provides a series of tests to verify CrosDisks' D-Bus API behavior.

Package crosdisks provides a series of tests to verify CrosDisks' D-Bus API behavior.

Package crosdisks provides a series of tests to verify CrosDisks' D-Bus API behavior.

Index

Constants

This section is empty.

Variables

View Source
var PreparedArchives = []string{
	"crosdisks/Duplicate Filenames.zip",
	"crosdisks/Encrypted Full V4.rar",
	"crosdisks/Encrypted Full V5.rar",
	"crosdisks/Encrypted Partial V4.rar",
	"crosdisks/Encrypted Partial V5.rar",
	"crosdisks/Encrypted AES-128.zip",
	"crosdisks/Encrypted AES-192.zip",
	"crosdisks/Encrypted AES-256.zip",
	"crosdisks/Encrypted ZipCrypto.zip",
	"crosdisks/Encrypted Various.zip",
	"crosdisks/Invalid.rar",
	"crosdisks/Invalid.zip",
	"crosdisks/Format V4.rar",
	"crosdisks/Format V5.rar",
	"crosdisks/Multipart Old Style.rar",
	"crosdisks/Multipart Old Style.r00",
	"crosdisks/Multipart New Style 01.rar",
	"crosdisks/Multipart New Style 02.rar",
	"crosdisks/Multipart New Style 03.rar",
	"crosdisks/Nested.rar",
	"crosdisks/Nested.zip",
	"crosdisks/Strict Password.zip",
	"crosdisks/Symlinks.zip",
	"crosdisks/Unicode.zip",
	"crosdisks/MacOS UTF-8 Bug 903664.zip",
	"crosdisks/SJIS Bug 846195.zip",
	"crosdisks/archive.rar",
	"crosdisks/archive.tar",
	"crosdisks/archive.tar.gz",
	"crosdisks/archive.zip",
}

PreparedArchives is a list of data files used in the test.

Functions

func RunArchiveTests

func RunArchiveTests(ctx context.Context, s *testing.State)

RunArchiveTests executes a set of tests which mount different archives using CrosDisks.

func RunBasicTests

func RunBasicTests(ctx context.Context, s *testing.State)

RunBasicTests runs a series of tests.

func RunFilesystemTests

func RunFilesystemTests(ctx context.Context, s *testing.State)

RunFilesystemTests executes a set of tests which mount different filesystems using CrosDisks.

func RunFormatTests

func RunFormatTests(ctx context.Context, s *testing.State)

RunFormatTests executes a set of tests which format a partition with different filesystems CrosDisks.

func RunRenameTests

func RunRenameTests(ctx context.Context, s *testing.State)

RunRenameTests executes a set of tests which rename different filesystem partitions using CrosDisks.

func RunSSHFSTests

func RunSSHFSTests(ctx context.Context, s *testing.State)

RunSSHFSTests runs sshfs-related tests.

Types

type DirectoryContents

type DirectoryContents map[string]FileItem

DirectoryContents maps from relative file names to properties of the file.

type FileItem

type FileItem struct {
	Mtime int64
	Data  []byte
}

FileItem represents expectation for a file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL