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

Function errExpectedLengthEqual

pkg/encoding/lorawan/errors.go:54–56  ·  view source on GitHub ↗
(lorawanField string, expected any)

Source from the content-addressed store, hash-verified

52}
53
54func errExpectedLengthEqual(lorawanField string, expected any) valueErr {
55 return unexpectedValue(errFieldLengthEqual.WithAttributes("lorawan_field", lorawanField, "expected", expected))
56}
57
58func errExpectedLengthLowerOrEqual(lorawanField string, max any) valueErr {
59 return unexpectedValue(errFieldLengthHasMax.WithAttributes("lorawan_field", lorawanField, "max", max))

Callers 8

newMACUnmarshalerFunction · 0.85
AppendFHDRFunction · 0.85
AppendJoinAcceptPayloadFunction · 0.85
AppendJoinRequestPayloadFunction · 0.85
UnmarshalMessageFunction · 0.85

Calls 2

unexpectedValueFunction · 0.70
WithAttributesMethod · 0.45

Tested by

no test coverage detected