Add tests for Go 1.17 library changes

This commit is contained in:
Sauyon Lee
2021-08-19 12:36:08 -07:00
parent c41502de1e
commit d4aa572109
4 changed files with 32 additions and 0 deletions

View File

@@ -40,6 +40,19 @@ func TaintStepTest_ArchiveZipFileOpen_B0I0O0(sourceCQL interface{}) interface{}
return intoReadCloser483
}
func TaintStepTest_ArchiveZipFileOpenRaw_B0I0O0(sourceCQL interface{}) interface{} {
fromFile127 := sourceCQL.(zip.File)
intoReadCloser483, _ := fromFile127.OpenRaw()
return intoReadCloser483
}
func TaintStepTest_ArchiveZipWriterCopy_B0I0O0(sourceCQL interface{}) interface{} {
fromFile127 := sourceCQL.(*zip.File)
var intoWriter982 zip.Writer
intoWriter982.Copy(fromFile127)
return intoWriter982
}
func TaintStepTest_ArchiveZipWriterCreate_B0I0O0(sourceCQL interface{}) interface{} {
fromWriter989 := sourceCQL.(io.Writer)
var intoWriter982 zip.Writer
@@ -48,6 +61,14 @@ func TaintStepTest_ArchiveZipWriterCreate_B0I0O0(sourceCQL interface{}) interfac
return intoWriter982
}
func TaintStepTest_ArchiveZipWriterCreateRaw_B0I0O0(sourceCQL interface{}) interface{} {
fromWriter989 := sourceCQL.(io.Writer)
var intoWriter982 zip.Writer
intermediateCQL, _ := intoWriter982.CreateRaw(nil)
link(fromWriter989, intermediateCQL)
return intoWriter982
}
func TaintStepTest_ArchiveZipWriterCreateHeader_B0I0O0(sourceCQL interface{}) interface{} {
fromWriter417 := sourceCQL.(io.Writer)
var intoWriter584 zip.Writer

View File

@@ -11,6 +11,11 @@ func walkDirCallback(path string, d fs.DirEntry, _ error) error {
}
func steps() {
{
source := newSource(16).(fs.FileInfo)
out := fs.FileInfoToDirEntry(source)
sink(16, out)
}
{
source := newSource(0).(fs.FS)
out, _ := fs.Glob(source, "*")

View File

@@ -46,6 +46,12 @@ func TaintStepTest_StrconvQuote_B0I0O0(sourceCQL interface{}) interface{} {
return intoString584
}
func TaintStepTest_StrconvQuotedPrefix_B0I0O0(sourceCQL interface{}) interface{} {
fromString417 := sourceCQL.(string)
intoString584, _ := strconv.QuotedPrefix(fromString417)
return intoString584
}
func TaintStepTest_StrconvQuoteToASCII_B0I0O0(sourceCQL interface{}) interface{} {
fromString991 := sourceCQL.(string)
intoString881 := strconv.QuoteToASCII(fromString991)

Binary file not shown.