PropWare
C++ objects and CMake build system for Parallax Propeller
|
#include "PropWareTests.h"
#include <PropWare/filesystem/sd.h>
#include <PropWare/filesystem/fat/fatfs.h>
#include <PropWare/filesystem/fat/fatfilewriter.h>
#include <PropWare/filesystem/fat/fatfilereader.h>
Go to the source code of this file.
Functions | |
void | error_checker (const ErrorCode err) |
void | clear_buffer (const BlockStorage *driver, BlockStorage::Buffer *buffer) |
void | clear_buffer (File *file) |
if (err) | |
TEST (ConstructorDestructor) | |
TEST (Exists_doesNotExist) | |
TEST (Exists_doesExist) | |
TEST (OpenClose_ExistingFile) | |
TEST (OpenCloseDelete_NonExistingFile) | |
TEST (SafePutChar_FileNotOpened) | |
TEST (SafePutChar_singleChar) | |
TEST (SafePutChar_MultiLine) | |
TEST (CopyFile) | |
int | main () |
Variables | |
static const char | EXISTING_FILE [] = "fat_test.txt" |
static const char | EXISTING_FILE_UPPER [] = "FAT_TEST.TXT" |
static const char | NEW_FILE_NAME [] = "new_test.txt" |
static FatFS * | g_fs |
static FatFileWriter * | testable = new FatFileWriter(*g_fs, NEW_FILE_NAME) |
SETUP | |
err = testable->open() | |
TEARDOWN | |
Prerequisites:
Definition in file fatfilewriter_test.cpp.
SETUP |
Definition at line 75 of file fatfilewriter_test.cpp.
TEARDOWN |
Definition at line 85 of file fatfilewriter_test.cpp.