Commit a04e3095 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Imrpove the VCC:vcc_expr.c coverage tests

parent 76f0f3b1
......@@ -99,91 +99,130 @@ varnish v1 -vcl {
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = "foo" - "bar";
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = now + "foo";
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = now + now;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = now + 1;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = 1 + "foo";
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = 1 + now;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = 1 + 1s;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = 1s;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = 1s + 1;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = 1s + now;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = 1s + "foo";
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = "foo" + 1s;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.ttl = 1s + 1;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.ttl = 1s + now;
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.ttl = 1s + "foo";
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch {
if (req.url || beresp.ttl) {
}
}
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch {
if (req.url && beresp.ttl) {
}
}
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch {
if (!req.url) {
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment