Commit 44424903 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

test: filter-limit: update

parent b8bb8e88
...@@ -14,22 +14,26 @@ function add(limit_type, base) ...@@ -14,22 +14,26 @@ function add(limit_type, base)
for _, name in ipairs{ for _, name in ipairs{
false, type(limit) == 'table' and count == 1 and 'foo' or nil false, type(limit) == 'table' and count == 1 and 'foo' or nil
} do } do
for _, log in ipairs{false, true, 'none'} do for _, no_update in ipairs{false, name or nil} do
for _, action in ipairs{false, 'pass'} do local upd
if not (count == 30 and log and action) then if no_update then upd = false end
table.insert( for _, log in ipairs{false, true, 'none'} do
res, for _, action in ipairs{false, 'pass'} do
update( if not (count == 30 and log and action) then
{ table.insert(
[limit_type..'-limit']=type(limit) == 'table' and update( res,
{name=name or nil}, limit update(
) or limit, {
log=log or nil, [limit_type..'-limit']=type(limit) == 'table' and update(
action=action or nil {name=name or nil, update=upd}, limit
}, ) or limit,
base or {} log=log or nil,
) action=action or nil
) },
base or {}
)
)
end
end end
end end
end end
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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