Lines Matching refs:it

28   it('encodes none for the empty input', () => {
33 it('encodes and decodes max field number', () => {
42 it('uses the default pivot point', () => {
47 it('makes the pivot point configurable', () => {
54 it('returns false for empty input', () => {
59 it('returns true for non-empty input', () => {
65 it('returns false for empty array', () => {
71 it('returns true for non-empty array', () => {
77 it('updates value after write', () => {
86 it('clear the field set', () => {
96 it('clear the field decoded', () => {
106 it('clear the field read', () => {
117 it('clear set and copied fields without affecting the old', () => {
131 it('clear decoded and copied fields without affecting the old', () => {
145 it('clear read and copied fields without affecting the old', () => {
160 it('clear the max field number', () => {
172 it('work for singular fields', () => {
186 it('work for repeated fields', () => {
200 it('work for repeated fields', () => {
214 it('return the correct bytes after serialization', () => {
227 it('return false for the empty input', () => {
234 it('return the value from the input', () => {
242 it('encode the value from the input', () => {
248 it('encode the value from the input after read', () => {
256 it('return the value from multiple inputs', () => {
264 it('encode the value from multiple inputs', () => {
270 it('encode the value from multiple inputs after read', () => {
277 it('return the value from setter', () => {
286 it('encode the value from setter', () => {
294 it('return the bool value from cache', () => {
307 it('fail when getting bool value with other wire types', () => {
325 it('fail when setting bool value with out-of-range field number', () => {
340 it('fail when setting bool value with number value', () => {
360 it('return message from the input', () => {
367 it('return message from the input when pivot is set', () => {
374 it('encode message from the input', () => {
380 it('encode message from the input after read', () => {
387 it('return message from multiple inputs', () => {
396 it('encode message from multiple inputs', () => {
403 it('encode message merged from multiple inputs after read', () => {
412 it('return null for generic accessor', () => {
419 it('return null for generic accessor when pivot is set', () => {
426 it('return generic accessor from the input', () => {
437 it('return generic accessor from the cached input', () => {
457 it('return message from setter', () => {
467 it('encode message from setter', () => {
480 it('encode message with multiple submessage from setter', () => {
502 it('leave hasFieldNumber unchanged after getMessageOrNull', () => {
510 it('serialize changes to submessages made with getMessageOrNull', () => {
520 it('serialize additions to submessages made with getMessageOrNull', () => {
531 it('fail with getMessageOrNull if immutable message exist in cache', () => {
551 it('change hasFieldNumber after getMessageAttach', () => {
559 it('change hasFieldNumber after getMessageAttach when pivot is set', () => {
568 it('serialize submessages made with getMessageAttach', () => {
577 it('serialize additions to submessages using getMessageAttach', () => {
588 it('fail with getMessageAttach if immutable message exist in cache', () => {
608 it('read default message return empty message with getMessage', () => {
616 it('read default message return null with getMessageOrNull', () => {
623 it('read message preserve reference equality', () => {
633 it('fail when getting message with other wire types', () => {
639 it('fail when submessage has incomplete data', () => {
646 it('fail when mutable submessage has incomplete data', () => {
653 it('fail when getting message with null instance constructor', () => {
661 it('fail when setting message value with null value', () => {
683 it('returns default value for empty input', () => {
688 it('returns the default from parameter', () => {
696 it('decodes value from wire', () => {
702 it('decodes value from wire with multple values being present', () => {
708 it('fails when getting value with other wire types', () => {
726 it('throws in getter for invalid fieldNumber', () => {
737 it('returns the value from setter', () => {
744 it('encode the value from setter', () => {
752 it('returns value from cache', () => {
761 it('throws in setter for invalid fieldNumber', () => {
772 it('throws in setter for invalid value', () => {
788 it('returns default value for empty input', () => {
793 it('returns the default from parameter', () => {
798 it('decodes value from wire', () => {
804 it('decodes value from wire with multple values being present', () => {
810 it('fails when getting value with other wire types', () => {
826 it('throws in getter for invalid fieldNumber', () => {
835 it('returns the value from setter', () => {
842 it('encode the value from setter', () => {
850 it('returns value from cache', () => {
859 it('throws in setter for invalid fieldNumber', () => {
870 it('throws in setter for invalid value', () => {
883 it('throws in setter for negative value', () => {
895 it('returns default value for empty input', () => {
900 it('returns the default from parameter', () => {
906 it('decodes value from wire', () => {
912 it('decodes value from wire with multple values being present', () => {
920 it('fails when getting value with other wire types', () => {
929 it('throws in getter for invalid fieldNumber', () => {
941 it('returns the value from setter', () => {
949 it('encode the value from setter', () => {
959 it('returns value from cache', () => {
969 it('throws in setter for invalid fieldNumber', () => {
980 it('throws in setter for invalid value', () => {
995 it('returns default value for empty input', () => {
1000 it('returns the default from parameter', () => {
1005 it('decodes value from wire', () => {
1011 it('decodes value from wire with multple values being present', () => {
1018 it('fails when getting float value with other wire types', () => {
1028 it('throws in getter for invalid fieldNumber', () => {
1037 it('returns the value from setter', () => {
1044 it('encode the value from setter', () => {
1052 it('returns float value from cache', () => {
1061 it('throws in setter for invalid fieldNumber', () => {
1072 it('throws in setter for invalid value', () => {
1085 it('throws in setter for value outside of float32 precision', () => {
1098 it('returns default value for empty input', () => {
1103 it('returns the default from parameter', () => {
1108 it('decodes value from wire', () => {
1113 it('decodes value from wire with multple values being present', () => {
1119 it('fails when getting value with other wire types', () => {
1135 it('throws in getter for invalid fieldNumber', () => {
1144 it('returns the value from setter', () => {
1151 it('encode the value from setter', () => {
1159 it('returns value from cache', () => {
1168 it('throws in setter for invalid fieldNumber', () => {
1179 it('throws in setter for invalid value', () => {
1194 it('returns default value for empty input', () => {
1199 it('returns the default from parameter', () => {
1205 it('decodes value from wire', () => {
1210 it('decodes value from wire with multple values being present', () => {
1216 it('fails when getting value with other wire types', () => {
1232 it('throws in getter for invalid fieldNumber', () => {
1243 it('returns the value from setter', () => {
1250 it('encode the value from setter', () => {
1258 it('returns value from cache', () => {
1267 it('throws in setter for invalid fieldNumber', () => {
1278 it('throws in setter for invalid value', () => {
1293 it('returns default value for empty input', () => {
1298 it('returns the default from parameter', () => {
1303 it('decodes value from wire', () => {
1309 it('decodes value from wire with multple values being present', () => {
1315 it('fails when getting value with other wire types', () => {
1331 it('throws in getter for invalid fieldNumber', () => {
1340 it('returns the value from setter', () => {
1347 it('encode the value from setter', () => {
1355 it('returns value from cache', () => {
1364 it('throws in setter for invalid fieldNumber', () => {
1375 it('throws in setter for invalid value', () => {
1390 it('returns default value for empty input', () => {
1395 it('returns the default from parameter', () => {
1401 it('decodes value from wire', () => {
1407 it('decodes value from wire with multple values being present', () => {
1415 it('fails when getting value with other wire types', () => {
1424 it('throws in getter for invalid fieldNumber', () => {
1436 it('returns the value from setter', () => {
1444 it('encode the value from setter', () => {
1454 it('returns value from cache', () => {
1464 it('throws in setter for invalid fieldNumber', () => {
1475 it('throws in setter for invalid value', () => {
1490 it('returns default value for empty input', () => {
1495 it('returns the default from parameter', () => {
1500 it('decodes value from wire', () => {
1505 it('decodes value from wire with multple values being present', () => {
1511 it('fails when getting value with other wire types', () => {
1527 it('throws in getter for invalid fieldNumber', () => {
1536 it('returns the value from setter', () => {
1543 it('encode the value from setter', () => {
1551 it('returns value from cache', () => {
1560 it('throws in setter for invalid fieldNumber', () => {
1571 it('throws in setter for invalid value', () => {
1586 it('returns default value for empty input', () => {
1591 it('returns the default from parameter', () => {
1597 it('decodes value from wire', () => {
1602 it('decodes value from wire with multple values being present', () => {
1608 it('fails when getting value with other wire types', () => {
1624 it('throws in getter for invalid fieldNumber', () => {
1635 it('returns the value from setter', () => {
1642 it('encode the value from setter', () => {
1650 it('returns value from cache', () => {
1659 it('throws in setter for invalid fieldNumber', () => {
1670 it('throws in setter for invalid value', () => {
1685 it('returns empty string for the empty input', () => {
1690 it('returns the default for the empty input', () => {
1695 it('decodes value from wire', () => {
1701 it('decodes value from wire with multple values being present', () => {
1708 it('fails when getting string value with other wire types', () => {
1718 it('throws in getter for invalid fieldNumber', () => {
1727 it('returns the value from setter', () => {
1734 it('encode the value from setter', () => {
1742 it('returns string value from cache', () => {
1751 it('throws in setter for invalid fieldNumber', () => {
1762 it('throws in setter for invalid value', () => {
1777 it('returns default value for empty input', () => {
1782 it('returns the default from parameter', () => {
1787 it('decodes value from wire', () => {
1792 it('decodes value from wire with multple values being present', () => {
1798 it('fails when getting value with other wire types', () => {
1814 it('throws in getter for invalid fieldNumber', () => {
1823 it('returns the value from setter', () => {
1830 it('encode the value from setter', () => {
1838 it('returns value from cache', () => {
1847 it('throws in setter for invalid fieldNumber', () => {
1858 it('throws in setter for invalid value', () => {
1871 it('throws in setter for negative value', () => {
1883 it('returns default value for empty input', () => {
1888 it('returns the default from parameter', () => {
1894 it('decodes value from wire', () => {
1899 it('decodes value from wire with multple values being present', () => {
1905 it('fails when getting value with other wire types', () => {
1921 it('throws in getter for invalid fieldNumber', () => {
1932 it('returns the value from setter', () => {
1939 it('encode the value from setter', () => {
1947 it('returns value from cache', () => {
1956 it('throws in setter for invalid fieldNumber', () => {
1967 it('throws in setter for invalid value', () => {
1982 it('returns default value for empty input', () => {
1987 it('returns the default from parameter', () => {
1992 it('decodes value from wire', () => {
1999 it('decodes value from wire with multple values being present', () => {
2007 it('fails when getting double value with other wire types', () => {
2017 it('throws in getter for invalid fieldNumber', () => {
2026 it('returns the value from setter', () => {
2034 it('encode the value from setter', () => {
2044 it('returns string value from cache', () => {
2054 it('throws in setter for invalid fieldNumber', () => {
2065 it('throws in setter for invalid value', () => {
2080 it('return group from the input', () => {
2087 it('return group from the input when pivot is set', () => {
2094 it('encode group from the input', () => {
2100 it('encode group from the input after read', () => {
2107 it('return last group from multiple inputs', () => {
2115 it('removes duplicated group when serializing', () => {
2124 it('encode group from multiple inputs', () => {
2131 it('encode group after read', () => {
2140 it('return group from setter', () => {
2150 it('encode group from setter', () => {
2159 it('leave hasFieldNumber unchanged after getGroupOrNull', () => {
2166 it('serialize changes to subgroups made with getGroupsOrNull', () => {
2176 it('serialize additions to subgroups made with getGroupOrNull', () => {
2187 it('fail with getGroupOrNull if immutable group exist in cache', () => {
2207 it('change hasFieldNumber after getGroupAttach', () => {
2215 it('change hasFieldNumber after getGroupAttach when pivot is set', () => {
2224 it('serialize subgroups made with getGroupAttach', () => {
2233 it('serialize additions to subgroups using getMessageAttach', () => {
2244 it('fail with getGroupAttach if immutable message exist in cache', () => {
2264 it('read default group return empty group with getGroup', () => {
2272 it('read default group return null with getGroupOrNull', () => {
2278 it('read group preserve reference equality', () => {
2288 it('fail when getting group with null instance constructor', () => {
2296 it('fail when setting group value with null value', () => {
2314 it('reads group in a longer buffer', () => {