Update test expectations

This commit is contained in:
Owen Mansel-Chan
2025-03-20 15:49:20 +00:00
parent da8ae84422
commit 662af6e248
3 changed files with 18 additions and 18 deletions

View File

@@ -31,11 +31,11 @@ func glogTest() {
glog.Warningln(text) // $ logger=text
// components corresponding to the format specifier "%T" are not considered vulnerable
glog.Errorf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
glog.Exitf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
glog.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
glog.Infof("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
glog.Warningf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
glog.Errorf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
glog.Exitf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
glog.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
glog.Infof("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
glog.Warningf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
klog.Error(text) // $ logger=text
klog.ErrorDepth(0, text) // $ logger=text
@@ -59,9 +59,9 @@ func glogTest() {
klog.Warningln(text) // $ logger=text
// components corresponding to the format specifier "%T" are not considered vulnerable
klog.Errorf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
klog.Exitf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
klog.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
klog.Infof("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
klog.Warningf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
klog.Errorf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
klog.Exitf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
klog.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
klog.Infof("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
klog.Warningf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
}

View File

@@ -34,6 +34,6 @@ func logrusCalls() {
logrus.FatalFn(fn) // $ logger=fn
// components corresponding to the format specifier "%T" are not considered vulnerable
logrus.Infof("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
logrus.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
logrus.Infof("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
logrus.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
}

View File

@@ -18,9 +18,9 @@ func stdlib() {
logger.Println(text) // $ logger=text
// components corresponding to the format specifier "%T" are not considered vulnerable
logger.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
logger.Panicf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
logger.Printf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
logger.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
logger.Panicf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
logger.Printf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
log.SetPrefix("prefix: ")
log.Fatal(text) // $ logger=text
@@ -34,7 +34,7 @@ func stdlib() {
log.Println(text) // $ logger=text
// components corresponding to the format specifier "%T" are not considered vulnerable
log.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
log.Panicf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
log.Printf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text
log.Fatalf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
log.Panicf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
log.Printf("%s: found type %T", text, v) // $ logger="%s: found type %T" logger=text type-logger=v
}