Sandbox

Responsible for creating a temporary directory to serve as a sandbox where files can be created, written to or deleted.

Members

Aliases

shouldExecuteOk
alias shouldExecuteOk = shouldSucceed
Undocumented in source.

Functions

fileShouldContain
void fileShouldContain(string fileName, string needle, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
inSandboxPath
string inSandboxPath(string fileName)
Undocumented in source. Be warned that the author may not have intended to support it.
sandboxPath
string sandboxPath()
Undocumented in source. Be warned that the author may not have intended to support it.
shouldEqualContent
void shouldEqualContent(string fileName, string content, string file, size_t line)

read a file in the test sandbox and verify its contents

shouldEqualLines
void shouldEqualLines(string fileName, string[] lines, string file, size_t line)

read a file in the test sandbox and verify its contents

shouldExist
void shouldExist(string fileName, string file, size_t line)

Assert that a file exists in the sandbox

shouldFail
void shouldFail(string[] args)

Executing args should fail

shouldNotExist
void shouldNotExist(string fileName, string file, size_t line)

Assert that a file does not exist in the sandbox

shouldSucceed
void shouldSucceed(string[] args)

Executing args should succeed

writeFile
void writeFile(string fileName, string output)

Write a file to the sandbox

writeFile
void writeFile(string fileName, string[] lines)

Write a file to the sandbox

Manifest constants

defaultSandboxesPath
enum defaultSandboxesPath;
Undocumented in source.

Static functions

opCall
Sandbox opCall()

Instantiate a Sandbox object

resetPath
void resetPath()
Undocumented in source. Be warned that the author may not have intended to support it.
setPath
void setPath(string path)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

sandboxesPath
string sandboxesPath;
Undocumented in source.

Variables

testPath
string testPath;
Undocumented in source.

Meta