Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-zipflow
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-zipflow
Commits
33336160
Unverified
Commit
33336160
authored
Sep 22, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testcase rename
parent
875969d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
zfr_iter.c
src/zfr_iter.c
+12
-12
No files found.
src/zfr_iter.c
View file @
33336160
...
...
@@ -211,7 +211,7 @@ struct expect {
const
char
*
u
,
*
h
,
**
pfx
;
};
static
const
char
*
pfx_host
[
7
]
=
{
static
const
char
*
pfx_
ws_
host
[
7
]
=
{
"https://"
,
"http://"
,
"//"
,
...
...
@@ -221,7 +221,7 @@ static const char *pfx_host[7] = {
NULL
};
static
const
char
*
pfx_nohost
[
2
]
=
{
static
const
char
*
pfx_
ws_
nohost
[
2
]
=
{
""
,
NULL
};
...
...
@@ -242,15 +242,15 @@ static const char *invalid[10] = {
NULL
};
static
struct
expect
t
estcase
[
9
]
=
{
{
.
u
=
"/url"
,
.
h
=
"host"
,
.
pfx
=
pfx_host
},
{
.
u
=
"/"
,
.
h
=
"host"
,
.
pfx
=
pfx_host
},
{
.
u
=
"///"
,
.
h
=
"ho-t"
,
.
pfx
=
pfx_host
},
{
.
u
=
"/"
,
.
h
=
"h"
,
.
pfx
=
pfx_host
},
{
.
u
=
"///"
,
.
h
=
"h"
,
.
pfx
=
pfx_host
},
{
.
u
=
"/url"
,
.
h
=
NULL
,
.
pfx
=
pfx_nohost
},
{
.
u
=
"/"
,
.
h
=
NULL
,
.
pfx
=
pfx_nohost
},
{
.
u
=
"/a"
,
.
h
=
NULL
,
.
pfx
=
pfx_nohost
},
static
struct
expect
t
c_ws
[
9
]
=
{
{
.
u
=
"/url"
,
.
h
=
"host"
,
.
pfx
=
pfx_
ws_
host
},
{
.
u
=
"/"
,
.
h
=
"host"
,
.
pfx
=
pfx_
ws_
host
},
{
.
u
=
"///"
,
.
h
=
"ho-t"
,
.
pfx
=
pfx_
ws_
host
},
{
.
u
=
"/"
,
.
h
=
"h"
,
.
pfx
=
pfx_
ws_
host
},
{
.
u
=
"///"
,
.
h
=
"h"
,
.
pfx
=
pfx_
ws_
host
},
{
.
u
=
"/url"
,
.
h
=
NULL
,
.
pfx
=
pfx_
ws_
nohost
},
{
.
u
=
"/"
,
.
h
=
NULL
,
.
pfx
=
pfx_
ws_
nohost
},
{
.
u
=
"/a"
,
.
h
=
NULL
,
.
pfx
=
pfx_
ws_
nohost
},
{
NULL
}
};
...
...
@@ -335,7 +335,7 @@ main(void) {
t
=
s
;
assert
(
tok
(
t
,
strchr
(
s
,
'\0'
),
"https://"
));
for
(
want
=
t
estcase
;
want
->
u
!=
NULL
;
want
++
)
{
for
(
want
=
t
c_ws
;
want
->
u
!=
NULL
;
want
++
)
{
INIT_OBJ
(
zis
,
ZFR_ITER_MAGIC
);
zis
->
priv
=
NULL
;
zis
->
func
=
cb_not
;
...
...
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