mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
Add missing tests for mime/multipart.Part
This commit is contained in:
@@ -90,6 +90,16 @@ func TaintStepTest_MimeMultipartWriterWriteField_B0I1O0(sourceCQL interface{}) i
|
||||
return intoWriter409
|
||||
}
|
||||
|
||||
func TaintStepTest_MimeMultipartPartFileName(sourceCQL interface{}) interface{} {
|
||||
fromPart520 := sourceCQL.(multipart.Part)
|
||||
return fromPart520.FileName()
|
||||
}
|
||||
|
||||
func TaintStepTest_MimeMultipartPartFormName(sourceCQL interface{}) interface{} {
|
||||
fromPart520 := sourceCQL.(multipart.Part)
|
||||
return fromPart520.FormName()
|
||||
}
|
||||
|
||||
func RunAllTaints_MimeMultipart() {
|
||||
{
|
||||
source := newSource(0)
|
||||
@@ -151,4 +161,14 @@ func RunAllTaints_MimeMultipart() {
|
||||
out := TaintStepTest_MimeMultipartWriterWriteField_B0I1O0(source)
|
||||
sink(11, out)
|
||||
}
|
||||
{
|
||||
source := newSource(12)
|
||||
out := TaintStepTest_MimeMultipartPartFileName(source)
|
||||
sink(12, out)
|
||||
}
|
||||
{
|
||||
source := newSource(13)
|
||||
out := TaintStepTest_MimeMultipartPartFormName(source)
|
||||
sink(13, out)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user