MCPcopy Create free account
hub / github.com/devld/go-drive / Bool

Method Bool

script/utils.go:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62func (v *Value) Bool() bool {
63 b, e := v.v.ToBoolean()
64 if e != nil {
65 v.vm.ThrowTypeError(e.Error())
66 }
67 return b
68}
69
70func (v *Value) Integer() int64 {
71 i, e := v.v.ToInteger()

Callers 11

parseValueFunction · 0.45
vm_buildEntriesTreeFunction · 0.45
vm_findEntriesFunction · 0.45
vm_flattenEntriesTreeFunction · 0.45
parseLDAPConfigFunction · 0.45
marshalSimpleMethod · 0.45
marshalStructMethod · 0.45
isEmptyValueFunction · 0.45
valueToScriptEntryStructFunction · 0.45
HasThumbnailMethod · 0.45
deleteMethod · 0.45

Calls 2

ThrowTypeErrorMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected