aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-10-07 12:24:30 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-10-07 12:32:20 +0300
commite3798fb682ef5819d21796644b051ad262e7317d (patch)
tree7fd05aa5b5b05f86167a12235a83a4b74c672226 /test
parentd172644f178113b315da1ea06e4fc954b9e4f771 (diff)
downloadawall-e3798fb682ef5819d21796644b051ad262e7317d.tar.bz2
awall-e3798fb682ef5819d21796644b051ad262e7317d.tar.xz
test: filter-limit: adjust indentation
Diffstat (limited to 'test')
-rw-r--r--test/mandatory/filter-limit.lua38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/mandatory/filter-limit.lua b/test/mandatory/filter-limit.lua
index 45fd704..73bb6c0 100644
--- a/test/mandatory/filter-limit.lua
+++ b/test/mandatory/filter-limit.lua
@@ -5,25 +5,25 @@ res = {}
function add(limit_type, base)
for _, count in ipairs{1, 30} do
- for _, limit in ipairs{
- count, {count=count, log=false}, {count=count, log='none'}
- } do
- for _, log in ipairs{false, true, 'none'} do
- for _, action in ipairs{false, 'pass'} do
- if not (count == 30 and log and action) then
- table.insert(
- res,
- util.update(
- util.copy(base or {}),
- {
- [limit_type..'-limit']=limit,
- log=log or nil,
- action=action or nil
- }
- )
- )
- end
- end
+ for _, limit in ipairs{
+ count, {count=count, log=false}, {count=count, log='none'}
+ } do
+ for _, log in ipairs{false, true, 'none'} do
+ for _, action in ipairs{false, 'pass'} do
+ if not (count == 30 and log and action) then
+ table.insert(
+ res,
+ util.update(
+ util.copy(base or {}),
+ {
+ [limit_type..'-limit']=limit,
+ log=log or nil,
+ action=action or nil
+ }
+ )
+ )
+ end
+ end
end
end
end