Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent
Commits
d0064936
Commit
d0064936
authored
Mar 30, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a test for format.c/get_payload() for empty payloads
parent
b4f67315
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
test_format.c
src/test/test_format.c
+6
-0
No files found.
src/test/test_format.c
View file @
d0064936
...
@@ -107,6 +107,12 @@ static const char
...
@@ -107,6 +107,12 @@ static const char
get_payload
(
&
rec
);
get_payload
(
&
rec
);
MASSERT
(
strcmp
(
VSB_data
(
payload
),
str
)
==
0
);
MASSERT
(
strcmp
(
VSB_data
(
payload
),
str
)
==
0
);
/* Empty record */
rec
.
len
=
0
;
*
chunk
.
data
=
'\0'
;
get_payload
(
&
rec
);
MASSERT
(
strlen
(
VSB_data
(
payload
))
==
0
);
return
NULL
;
return
NULL
;
}
}
...
...
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