MCPcopy Create free account
hub / github.com/boombuler/barcode / testHighLevelEncodeStringCnt

Function testHighLevelEncodeStringCnt

aztec/highlevel_test.go:33–39  ·  view source on GitHub ↗
(t *testing.T, s string, expectedBitCnt int)

Source from the content-addressed store, hash-verified

31 }
32}
33func testHighLevelEncodeStringCnt(t *testing.T, s string, expectedBitCnt int) {
34 bits := highlevelEncode([]byte(s))
35
36 if bits.Len() != expectedBitCnt {
37 t.Errorf("invalid result for highlevelEncode(%q). Got %d, expected %d bits", s, bits.Len(), expectedBitCnt)
38 }
39}
40
41func Test_HighLevelEncode(t *testing.T) {
42 testHighLevelEncodeString(t, "A. b.",

Callers 2

Test_HighLevelEncodeFunction · 0.85

Calls 2

LenMethod · 0.80
highlevelEncodeFunction · 0.70

Tested by

no test coverage detected