Macros | Functions | Variables
test-fs-event.c File Reference
#include "uv.h"
#include "task.h"
#include <string.h>
#include <fcntl.h>
Include dependency graph for test-fs-event.c:

Go to the source code of this file.

Macros

#define CREATE_TIMEOUT   1
 

Functions

static void close_cb (uv_handle_t *handle)
 
static void create_dir (const char *name)
 
static void create_file (const char *name)
 
static void fail_cb (uv_fs_event_t *handle, const char *path, int events, int status)
 
static void fs_event_cb_close (uv_fs_event_t *handle, const char *filename, int events, int status)
 
static void fs_event_cb_dir (uv_fs_event_t *handle, const char *filename, int events, int status)
 
static void fs_event_cb_dir_multi_file (uv_fs_event_t *handle, const char *filename, int events, int status)
 
static void fs_event_cb_file (uv_fs_event_t *handle, const char *filename, int events, int status)
 
static void fs_event_cb_file_current_dir (uv_fs_event_t *handle, const char *filename, int events, int status)
 
static void fs_event_create_files (uv_timer_t *handle)
 
static void fs_event_fail (uv_fs_event_t *handle, const char *filename, int events, int status)
 
static const char * fs_event_get_filename (int i)
 
static void fs_event_unlink_files (uv_timer_t *handle)
 
 TEST_IMPL (fs_event_close_in_callback)
 
 TEST_IMPL (fs_event_close_with_pending_event)
 
 TEST_IMPL (fs_event_error_reporting)
 
 TEST_IMPL (fs_event_getpath)
 
 TEST_IMPL (fs_event_immediate_close)
 
 TEST_IMPL (fs_event_no_callback_after_close)
 
 TEST_IMPL (fs_event_no_callback_on_close)
 
 TEST_IMPL (fs_event_start_and_close)
 
 TEST_IMPL (fs_event_watch_dir)
 
 TEST_IMPL (fs_event_watch_dir_recursive)
 
 TEST_IMPL (fs_event_watch_file)
 
 TEST_IMPL (fs_event_watch_file_current_dir)
 
 TEST_IMPL (fs_event_watch_file_exact_path)
 
 TEST_IMPL (fs_event_watch_file_twice)
 
 TEST_IMPL (fs_event_watch_invalid_path)
 
static void timer_cb (uv_timer_t *handle)
 
static void timer_cb_close_handle (uv_timer_t *timer)
 
static void timer_cb_exact (uv_timer_t *handle)
 
static void timer_cb_file (uv_timer_t *handle)
 
static void timer_cb_touch (uv_timer_t *timer)
 
static void timer_cb_watch_twice (uv_timer_t *handle)
 
static void touch_file (const char *name)
 

Variables

static int close_cb_called
 
static const char file_prefix [] = "fsevent-"
 
static uv_fs_event_t fs_event
 
static int fs_event_cb_called
 
static int fs_event_created
 
static const int fs_event_file_count = 16
 
static char fs_event_filename [1024]
 
static int fs_event_removed
 
static uv_timer_t timer
 
static int timer_cb_called
 
static int timer_cb_exact_called
 
static int timer_cb_touch_called
 

Macro Definition Documentation

◆ CREATE_TIMEOUT

#define CREATE_TIMEOUT   1

Definition at line 46 of file test-fs-event.c.

Function Documentation

◆ close_cb()

static void close_cb ( uv_handle_t handle)
static

Definition at line 120 of file test-fs-event.c.

◆ create_dir()

static void create_dir ( const char *  name)
static

Definition at line 77 of file test-fs-event.c.

◆ create_file()

static void create_file ( const char *  name)
static

Definition at line 85 of file test-fs-event.c.

◆ fail_cb()

static void fail_cb ( uv_fs_event_t handle,
const char *  path,
int  events,
int  status 
)
static

Definition at line 125 of file test-fs-event.c.

◆ fs_event_cb_close()

static void fs_event_cb_close ( uv_fs_event_t handle,
const char *  filename,
int  events,
int  status 
)
static

Definition at line 409 of file test-fs-event.c.

◆ fs_event_cb_dir()

static void fs_event_cb_dir ( uv_fs_event_t handle,
const char *  filename,
int  events,
int  status 
)
static

Definition at line 132 of file test-fs-event.c.

◆ fs_event_cb_dir_multi_file()

static void fs_event_cb_dir_multi_file ( uv_fs_event_t handle,
const char *  filename,
int  events,
int  status 
)
static

Definition at line 200 of file test-fs-event.c.

◆ fs_event_cb_file()

static void fs_event_cb_file ( uv_fs_event_t handle,
const char *  filename,
int  events,
int  status 
)
static

Definition at line 322 of file test-fs-event.c.

◆ fs_event_cb_file_current_dir()

static void fs_event_cb_file_current_dir ( uv_fs_event_t handle,
const char *  filename,
int  events,
int  status 
)
static

Definition at line 347 of file test-fs-event.c.

◆ fs_event_create_files()

static void fs_event_create_files ( uv_timer_t handle)
static

Definition at line 156 of file test-fs-event.c.

◆ fs_event_fail()

static void fs_event_fail ( uv_fs_event_t handle,
const char *  filename,
int  events,
int  status 
)
static

Definition at line 70 of file test-fs-event.c.

◆ fs_event_get_filename()

static const char* fs_event_get_filename ( int  i)
static

Definition at line 147 of file test-fs-event.c.

◆ fs_event_unlink_files()

static void fs_event_unlink_files ( uv_timer_t handle)
static

Definition at line 173 of file test-fs-event.c.

◆ TEST_IMPL() [1/15]

TEST_IMPL ( fs_event_close_in_callback  )

Definition at line 925 of file test-fs-event.c.

◆ TEST_IMPL() [2/15]

TEST_IMPL ( fs_event_close_with_pending_event  )

Definition at line 891 of file test-fs-event.c.

◆ TEST_IMPL() [3/15]

TEST_IMPL ( fs_event_error_reporting  )

Definition at line 1145 of file test-fs-event.c.

◆ TEST_IMPL() [4/15]

TEST_IMPL ( fs_event_getpath  )

Definition at line 1001 of file test-fs-event.c.

◆ TEST_IMPL() [5/15]

TEST_IMPL ( fs_event_immediate_close  )

Definition at line 866 of file test-fs-event.c.

◆ TEST_IMPL() [6/15]

TEST_IMPL ( fs_event_no_callback_after_close  )

Definition at line 777 of file test-fs-event.c.

◆ TEST_IMPL() [7/15]

TEST_IMPL ( fs_event_no_callback_on_close  )

Definition at line 815 of file test-fs-event.c.

◆ TEST_IMPL() [8/15]

TEST_IMPL ( fs_event_start_and_close  )

Definition at line 966 of file test-fs-event.c.

◆ TEST_IMPL() [9/15]

TEST_IMPL ( fs_event_watch_dir  )

Definition at line 424 of file test-fs-event.c.

◆ TEST_IMPL() [10/15]

TEST_IMPL ( fs_event_watch_dir_recursive  )

Definition at line 466 of file test-fs-event.c.

◆ TEST_IMPL() [11/15]

TEST_IMPL ( fs_event_watch_file  )

Definition at line 580 of file test-fs-event.c.

◆ TEST_IMPL() [12/15]

TEST_IMPL ( fs_event_watch_file_current_dir  )

Definition at line 697 of file test-fs-event.c.

◆ TEST_IMPL() [13/15]

TEST_IMPL ( fs_event_watch_file_exact_path  )

Definition at line 620 of file test-fs-event.c.

◆ TEST_IMPL() [14/15]

TEST_IMPL ( fs_event_watch_file_twice  )

Definition at line 673 of file test-fs-event.c.

◆ TEST_IMPL() [15/15]

TEST_IMPL ( fs_event_watch_invalid_path  )

Definition at line 1154 of file test-fs-event.c.

◆ timer_cb()

static void timer_cb ( uv_timer_t handle)
static

Definition at line 853 of file test-fs-event.c.

◆ timer_cb_close_handle()

static void timer_cb_close_handle ( uv_timer_t timer)
static

Definition at line 337 of file test-fs-event.c.

◆ timer_cb_exact()

static void timer_cb_exact ( uv_timer_t handle)
static

Definition at line 387 of file test-fs-event.c.

◆ timer_cb_file()

static void timer_cb_file ( uv_timer_t handle)
static

Definition at line 370 of file test-fs-event.c.

◆ timer_cb_touch()

static void timer_cb_touch ( uv_timer_t timer)
static

Definition at line 381 of file test-fs-event.c.

◆ timer_cb_watch_twice()

static void timer_cb_watch_twice ( uv_timer_t handle)
static

Definition at line 402 of file test-fs-event.c.

◆ touch_file()

static void touch_file ( const char *  name)
static

Definition at line 99 of file test-fs-event.c.

Variable Documentation

◆ close_cb_called

int close_cb_called
static

Definition at line 58 of file test-fs-event.c.

◆ file_prefix

const char file_prefix[] = "fsevent-"
static

Definition at line 50 of file test-fs-event.c.

◆ fs_event

uv_fs_event_t fs_event
static

Definition at line 49 of file test-fs-event.c.

◆ fs_event_cb_called

int fs_event_cb_called
static

Definition at line 61 of file test-fs-event.c.

◆ fs_event_created

int fs_event_created
static

Definition at line 59 of file test-fs-event.c.

◆ fs_event_file_count

const int fs_event_file_count = 16
static

Definition at line 51 of file test-fs-event.c.

◆ fs_event_filename

char fs_event_filename[1024]
static

Definition at line 65 of file test-fs-event.c.

◆ fs_event_removed

int fs_event_removed
static

Definition at line 60 of file test-fs-event.c.

◆ timer

uv_timer_t timer
static

Definition at line 56 of file test-fs-event.c.

◆ timer_cb_called

int timer_cb_called
static

Definition at line 57 of file test-fs-event.c.

◆ timer_cb_exact_called

int timer_cb_exact_called
static

Definition at line 68 of file test-fs-event.c.

◆ timer_cb_touch_called

int timer_cb_touch_called
static

Definition at line 67 of file test-fs-event.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:33