Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CoCo_Code_Op2
brakeman
提交
468418ec
B
brakeman
项目概览
CoCo_Code_Op2
/
brakeman
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
brakeman
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
468418ec
编写于
12月 11, 2013
作者:
J
Justin Collins
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adjust expected warnings for CVEs
上级
566cb53c
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
12 addition
and
14 deletion
+12
-14
test/tests/only_files_option.rb
test/tests/only_files_option.rb
+1
-2
test/tests/rails2.rb
test/tests/rails2.rb
+4
-4
test/tests/rails3.rb
test/tests/rails3.rb
+1
-1
test/tests/rails31.rb
test/tests/rails31.rb
+1
-1
test/tests/rails32.rb
test/tests/rails32.rb
+1
-2
test/tests/rails4.rb
test/tests/rails4.rb
+1
-1
test/tests/rails_with_xss_plugin.rb
test/tests/rails_with_xss_plugin.rb
+1
-1
test/tests/tabs_output.rb
test/tests/tabs_output.rb
+2
-2
未找到文件。
test/tests/only_files_option.rb
浏览文件 @
468418ec
...
...
@@ -11,8 +11,7 @@ class OnlyFilesOptionTests < Test::Unit::TestCase
:controller
=>
0
,
:model
=>
0
,
:template
=>
1
,
:generic
=>
4
}
:generic
=>
8
}
if
RUBY_PLATFORM
==
'java'
@expected
[
:generic
]
+=
1
...
...
test/tests/rails2.rb
浏览文件 @
468418ec
...
...
@@ -12,13 +12,13 @@ class Rails2Tests < Test::Unit::TestCase
:controller
=>
1
,
:model
=>
3
,
:template
=>
45
,
:generic
=>
4
6
}
:generic
=>
4
8
}
else
@expected
||=
{
:controller
=>
1
,
:model
=>
3
,
:template
=>
45
,
:generic
=>
4
7
}
:generic
=>
4
9
}
end
end
...
...
@@ -1252,13 +1252,13 @@ class Rails2WithOptionsTests < Test::Unit::TestCase
:controller
=>
1
,
:model
=>
4
,
:template
=>
45
,
:generic
=>
4
6
}
:generic
=>
4
8
}
else
@expected
||=
{
:controller
=>
1
,
:model
=>
4
,
:template
=>
45
,
:generic
=>
4
7
}
:generic
=>
4
9
}
end
end
...
...
test/tests/rails3.rb
浏览文件 @
468418ec
...
...
@@ -16,7 +16,7 @@ class Rails3Tests < Test::Unit::TestCase
:controller
=>
1
,
:model
=>
8
,
:template
=>
38
,
:generic
=>
6
3
:generic
=>
6
6
}
if
RUBY_PLATFORM
==
'java'
...
...
test/tests/rails31.rb
浏览文件 @
468418ec
...
...
@@ -15,7 +15,7 @@ class Rails31Tests < Test::Unit::TestCase
:model
=>
3
,
:template
=>
23
,
:controller
=>
4
,
:generic
=>
7
4
}
:generic
=>
7
7
}
end
def
test_without_protection
...
...
test/tests/rails32.rb
浏览文件 @
468418ec
...
...
@@ -11,8 +11,7 @@ class Rails32Tests < Test::Unit::TestCase
:controller
=>
0
,
:model
=>
5
,
:template
=>
11
,
:generic
=>
7
}
:generic
=>
10
}
if
RUBY_PLATFORM
==
'java'
@expected
[
:generic
]
+=
1
...
...
test/tests/rails4.rb
浏览文件 @
468418ec
...
...
@@ -15,7 +15,7 @@ class Rails4Tests < Test::Unit::TestCase
:controller
=>
0
,
:model
=>
0
,
:template
=>
1
,
:generic
=>
6
:generic
=>
9
}
end
...
...
test/tests/rails_with_xss_plugin.rb
浏览文件 @
468418ec
...
...
@@ -11,7 +11,7 @@ class RailsWithXssPluginTests < Test::Unit::TestCase
:controller
=>
1
,
:model
=>
3
,
:template
=>
2
,
:generic
=>
2
0
}
:generic
=>
2
2
}
end
def
report
...
...
test/tests/tabs_output.rb
浏览文件 @
468418ec
...
...
@@ -3,9 +3,9 @@ class TestTabsOutput < Test::Unit::TestCase
def
test_reported_warnings
if
Brakeman
::
Scanner
::
RUBY_1_9
assert_equal
Report
.
lines
.
to_a
.
count
,
96
assert_equal
98
,
Report
.
lines
.
to_a
.
count
else
assert_equal
Report
.
lines
.
to_a
.
count
,
97
assert_equal
99
,
Report
.
lines
.
to_a
.
count
end
end
end
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录