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

Function JoinStringsf

pkg/util/test/util.go:142–149  ·  view source on GitHub ↗

JoinStringsf formats contents of xs using format and joins them with sep.

(format, sep string, withKeys bool, xs any)

Source from the content-addressed store, hash-verified

140
141// JoinStringsf formats contents of xs using format and joins them with sep.
142func JoinStringsf(format, sep string, withKeys bool, xs any) string {
143 return JoinStringsMap(func(k, v any) string {
144 if withKeys {
145 return fmt.Sprintf(format, k, v)
146 }
147 return fmt.Sprintf(format, v)
148 }, sep, xs)
149}

Callers 3

TestDLChannelReqFunction · 0.92
TestLinkADRReqFunction · 0.92
TestNewChannelReqFunction · 0.92

Calls 1

JoinStringsMapFunction · 0.85

Tested by 3

TestDLChannelReqFunction · 0.74
TestLinkADRReqFunction · 0.74
TestNewChannelReqFunction · 0.74