MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / AllTrue

Function AllTrue

pkg/util/test/util.go:118–125  ·  view source on GitHub ↗

AllTrue returns true iff v == true for each v in vs.

(vs ...bool)

Source from the content-addressed store, hash-verified

116
117// AllTrue returns true iff v == true for each v in vs.
118func AllTrue(vs ...bool) bool {
119 for _, v := range vs {
120 if !v {
121 return false
122 }
123 }
124 return true
125}
126
127// JoinStringsMap maps contents of xs to strings using f and joins them with sep.
128func JoinStringsMap(f func(k any, v any) string, sep string, xs any) string {

Callers 12

TestProcessDownlinkTaskFunction · 0.92
makeOTAAFlowTestFunction · 0.92
AssertNsJsJoinMethod · 0.92
AssertJoinMethod · 0.92
handleDeviceRegistryTestFunction · 0.92
TestPopTaskFunction · 0.92
TestTaskQueueFunction · 0.92

Calls

no outgoing calls

Tested by 11

TestProcessDownlinkTaskFunction · 0.74
makeOTAAFlowTestFunction · 0.74
AssertNsJsJoinMethod · 0.74
AssertJoinMethod · 0.74
TestPopTaskFunction · 0.74
TestTaskQueueFunction · 0.74