mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 23:41:22 +08:00
fix: iOS tap_xy scale adaption error
This commit is contained in:
@@ -450,3 +450,8 @@ func GenNameWithTimestamp(tmpl string) string {
|
||||
}
|
||||
return fmt.Sprintf(tmpl, time.Now().Unix())
|
||||
}
|
||||
|
||||
func IsZeroFloat64(f float64) bool {
|
||||
threshold := 1e-3
|
||||
return math.Abs(f) < threshold
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user