MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / TryGetBool

Method TryGetBool

pkg/event/param.go:375–381  ·  view source on GitHub ↗

TryGetBool tries to retrieve the boolean value from the parameter. Returns the underlying value on success, or false otherwise.

(name string)

Source from the content-addressed store, hash-verified

373// TryGetBool tries to retrieve the boolean value from the parameter.
374// Returns the underlying value on success, or false otherwise.
375func (pars Params) TryGetBool(name string) bool {
376 val, err := pars.GetBool(name)
377 if err != nil {
378 return false
379 }
380 return val
381}
382
383// GetInt8 returns the underlying int8 value from the parameter.
384func (pars Params) GetInt8(name string) (int8, error) {

Callers 5

newProcStateMethod · 0.80
isLOLDriverFunction · 0.80
GetMethod · 0.80
ProcessEventMethod · 0.80
ScanMethod · 0.80

Calls 1

GetBoolMethod · 0.95

Tested by

no test coverage detected