Lines Matching refs:bytes
32 static void testParseError(ArrayRef<uint8_t> bytes, const char *msg) { in testParseError() argument
34 Error e = parser.parse(bytes, support::little); in testParseError()
39 static const uint8_t bytes[] = {1}; in TEST() local
40 testParseError(bytes, "unrecognized format-version: 0x1"); in TEST()
44 static const uint8_t bytes[] = {'A', 3, 0, 0, 0}; in TEST() local
45 testParseError(bytes, "invalid section length 3 at offset 0x1"); in TEST()
49 static const uint8_t bytes[] = {'A', 7, 0, 0, 0, 'x', 'y', 0}; in TEST() local
50 testParseError(bytes, "unrecognized vendor-name: xy"); in TEST()
54 static const uint8_t bytes[] = {'A', 14, 0, 0, 0, 't', 'e', 's', in TEST() local
56 testParseError(bytes, "unrecognized tag 0x4 at offset 0xa"); in TEST()
60 static const uint8_t bytes[] = {'A', 14, 0, 0, 0, 't', 'e', 's', in TEST() local
62 testParseError(bytes, "invalid attribute size 4 at offset 0xa"); in TEST()