]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/policy: basic test_slice test
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 15 Jul 2019 15:53:50 +0000 (17:53 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Mon, 5 Aug 2019 12:52:46 +0000 (14:52 +0200)
modules/policy/policy.test.lua

index 99b46e3813063b92803a236d6013a81eb78f82ae..d6e4d1d107167402f1777f406dc068f220dc597a 100644 (file)
@@ -56,6 +56,13 @@ local function test_tls_forward()
 
 end
 
+local function test_slice()
+       boom(policy.slice, {function() end}, 'policy.slice() without any action')
+       ok(policy.slice, {function() end, policy.FORWARD, policy.FORWARD})
+end
+
+
 return {
-       test_tls_forward
+       test_tls_forward,
+       test_slice,
 }