Flash Translation Layer  1.0
Macros | Functions | Variables
zone-test.c File Reference
#include "include/device.h"
#include "include/zone.h"
#include "unity.h"
Include dependency graph for zone-test.c:

Macros

#define ZBD_FILE_NAME   "/dev/nvme0n2"
 
#define WRITE_PAGE_SIZE(x)   (device_get_pages_per_segment(x) * 5)
 

Functions

void setUp (void)
 
void tearDown (void)
 
void test_open (void)
 
void test_full_write (void)
 
void test_overwrite (void)
 
void test_erase (void)
 
static void end_rq (struct device_request *request)
 
void test_end_rq_works (void)
 
int main (void)
 

Variables

struct devicedev
 

Macro Definition Documentation

◆ WRITE_PAGE_SIZE

#define WRITE_PAGE_SIZE (   x)    (device_get_pages_per_segment(x) * 5)

◆ ZBD_FILE_NAME

#define ZBD_FILE_NAME   "/dev/nvme0n2"

Function Documentation

◆ end_rq()

static void end_rq ( struct device_request request)
static

◆ main()

int main ( void  )
Here is the call graph for this function:

◆ setUp()

void setUp ( void  )
Here is the call graph for this function:

◆ tearDown()

void tearDown ( void  )
Here is the call graph for this function:

◆ test_end_rq_works()

void test_end_rq_works ( void  )

< note that all I/O functions run synchronously

Here is the call graph for this function:

◆ test_erase()

void test_erase ( void  )

< note that all I/O functions run synchronously

Here is the call graph for this function:

◆ test_full_write()

void test_full_write ( void  )

< note that all I/O functions run synchronously

Here is the call graph for this function:

◆ test_open()

void test_open ( void  )

◆ test_overwrite()

void test_overwrite ( void  )

< note that all I/O functions run synchronously

Here is the call graph for this function:

Variable Documentation

◆ dev

struct device* dev