utils

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelString

func CamelString(s string) string

func CheckStringType

func CheckStringType(inter interface{}) bool

func CopyInputModel

func CopyInputModel(src interface{}) (interface{}, error)

func CopyInputModelAndData

func CopyInputModelAndData(src interface{}) (interface{}, error)

func DecodeData

func DecodeData(data interface{}) interface{}

func DisableEscapeHtml

func DisableEscapeHtml(data interface{}) (string, error)

func ElementIsInSlice

func ElementIsInSlice(element string, elements []string) (isIn bool)

判断切片中是否包含元素

func FindString

func FindString(reg, str string) string

func GetGoPath

func GetGoPath() string

func GetTestingTPtrFromStack

func GetTestingTPtrFromStack() *testing.T

func InterfaceUnmarshalMap

func InterfaceUnmarshalMap(i interface{}) (map[string]interface{}, error)

func IsNumber

func IsNumber(s string) bool

func IsStringType

func IsStringType(data interface{}) bool

func LastElementOfStringSlice

func LastElementOfStringSlice(s []string) string

func Md5

func Md5(s string) string

func Number2Float64

func Number2Float64(data interface{}) float64

func PrintSuiteCaseAttachment

func PrintSuiteCaseAttachment(suiteName, caseName string, ta interface{})

func SnakeString

func SnakeString(s string) string

func String2Float64

func String2Float64(s string) (interface{}, error)

func SubCaseFilter

func SubCaseFilter(target string, caseLabels []string) (isRun bool)

子用例过滤,返回true表示需要执行,false表示需要跳过

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL