Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
8e46168c
Commit
8e46168c
authored
Nov 29, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clay: Add buffer tests
parent
798dd36c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
tests-clay/clay.h
+9
-0
tests-clay/clay_main.c
+19
-2
No files found.
tests-clay/clay.h
View file @
8e46168c
...
...
@@ -83,6 +83,15 @@ extern void test_config_write__delete_inexistent(void);
extern
void
test_config_write__delete_value
(
void
);
extern
void
test_config_write__initialize
(
void
);
extern
void
test_config_write__replace_value
(
void
);
extern
void
test_core_buffer__0
(
void
);
extern
void
test_core_buffer__1
(
void
);
extern
void
test_core_buffer__2
(
void
);
extern
void
test_core_buffer__3
(
void
);
extern
void
test_core_buffer__4
(
void
);
extern
void
test_core_buffer__5
(
void
);
extern
void
test_core_buffer__6
(
void
);
extern
void
test_core_buffer__7
(
void
);
extern
void
test_core_buffer__8
(
void
);
extern
void
test_core_dirent__dont_traverse_dot
(
void
);
extern
void
test_core_dirent__dont_traverse_empty_folders
(
void
);
extern
void
test_core_dirent__traverse_slash_terminated_folder
(
void
);
...
...
tests-clay/clay_main.c
View file @
8e46168c
...
...
@@ -136,6 +136,17 @@ static const struct clay_func _clay_cb_config_write[] = {
{
"delete_value"
,
&
test_config_write__delete_value
},
{
"replace_value"
,
&
test_config_write__replace_value
}
};
static
const
struct
clay_func
_clay_cb_core_buffer
[]
=
{
{
"0"
,
&
test_core_buffer__0
},
{
"1"
,
&
test_core_buffer__1
},
{
"2"
,
&
test_core_buffer__2
},
{
"3"
,
&
test_core_buffer__3
},
{
"4"
,
&
test_core_buffer__4
},
{
"5"
,
&
test_core_buffer__5
},
{
"6"
,
&
test_core_buffer__6
},
{
"7"
,
&
test_core_buffer__7
},
{
"8"
,
&
test_core_buffer__8
}
};
static
const
struct
clay_func
_clay_cb_core_dirent
[]
=
{
{
"dont_traverse_dot"
,
&
test_core_dirent__dont_traverse_dot
},
{
"dont_traverse_empty_folders"
,
&
test_core_dirent__dont_traverse_empty_folders
},
...
...
@@ -312,6 +323,12 @@ static const struct clay_suite _clay_suites[] = {
_clay_cb_config_write
,
3
},
{
"core::buffer"
,
{
NULL
,
NULL
},
{
NULL
,
NULL
},
_clay_cb_core_buffer
,
9
},
{
"core::dirent"
,
{
NULL
,
NULL
},
{
NULL
,
NULL
},
...
...
@@ -475,8 +492,8 @@ static const struct clay_suite _clay_suites[] = {
}
};
static
size_t
_clay_suite_count
=
3
3
;
static
size_t
_clay_callback_count
=
1
03
;
static
size_t
_clay_suite_count
=
3
4
;
static
size_t
_clay_callback_count
=
1
12
;
/* Core test functions */
static
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment