[master] a04e309 Imrpove the VCC:vcc_expr.c coverage tests
Poul-Henning Kamp
phk at varnish-cache.org
Wed Oct 24 11:24:07 CEST 2012
commit a04e30950b0226c87d762fcd44585b9fa8a6f75b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Oct 24 09:23:51 2012 +0000
Imrpove the VCC:vcc_expr.c coverage tests
diff --git a/bin/varnishtest/tests/v00020.vtc b/bin/varnishtest/tests/v00020.vtc
index 62a7cbc..564db09 100644
--- a/bin/varnishtest/tests/v00020.vtc
+++ b/bin/varnishtest/tests/v00020.vtc
@@ -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) {
+ }
+ }
+}
More information about the varnish-commit
mailing list