MCPcopy
hub / github.com/coder/websocket / Bool

Function Bool

internal/test/xrand/xrand.go:37–39  ·  view source on GitHub ↗

Bool returns a randomly generated boolean.

()

Source from the content-addressed store, hash-verified

35
36// Bool returns a randomly generated boolean.
37func Bool() bool {
38 return Int(2) == 1
39}
40
41// Int returns a randomly generated integer between [0, max).
42func Int(max int) int {

Callers 2

newConnTestFunction · 0.92
EchoFunction · 0.92

Calls 1

IntFunction · 0.85

Tested by 1

newConnTestFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…