1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
*** main ***
1..6
*** test_stack_error_decode ***
1..17
ok 1 - check CustomError
ok 2 - check AccessDeniedError
ok 3 - check ClientError
ok 4 - check XlogError
ok 5 - check XlogGapError
ok 6 - check SystemError
ok 7 - check SocketError
ok 8 - check OutOfMemory
ok 9 - check TimedOut
ok 10 - check ChannelIsClosed
ok 11 - check FiberIsCancelled
ok 12 - check LuajitError
ok 13 - check IllegalParams
ok 14 - check CollationError
ok 15 - check SwimError
ok 16 - check CryptoError
ok 17 - stack size
ok 1 - subtests
*** test_stack_error_decode: done ***
*** test_decode_unknown_type ***
1..1
ok 1 - check SomeNewError
ok 2 - subtests
*** test_decode_unknown_type: done ***
*** test_fail_not_enough_fields ***
1..2
ok 1 - check not enough additional fields
ok 2 - error about parsing problem is set
ok 3 - subtests
*** test_fail_not_enough_fields: done ***
*** test_unknown_fields ***
1..1
ok 1 - check unknown fields
ok 4 - subtests
*** test_unknown_additional_fields ***
1..1
ok 1 - check unknown additional field
ok 5 - subtests
*** test_unknown_additional_fields: done ***
*** test_mp_print ***
1..60
# zero depth, normal error
ok 1 - mp_snprint depth 0 correct returned value
ok 2 - mp_snprint depth 0 correct length
ok 3 - mp_snprint depth 0 correct prefix and suffix
ok 4 - mp_snprint depth 0 correct object in the middle
ok 5 - mp_snprint depth 0 correct with NULL buffer
ok 6 - mp_fprint depth 0 result and the actual file size are equal
ok 7 - mp_fprint depth 0 correct returned value
ok 8 - mp_fprint depth 0 correct length
ok 9 - mp_fprint depth 0 correct prefix and suffix
ok 10 - mp_fprint depth 0 correct object in the middle
# max depth, all is truncated
ok 11 - mp_snprint depth 32 correct returned value
ok 12 - mp_snprint depth 32 correct length
ok 13 - mp_snprint depth 32 correct prefix and suffix
ok 14 - mp_snprint depth 32 correct object in the middle
ok 15 - mp_snprint depth 32 correct with NULL buffer
ok 16 - mp_fprint depth 32 result and the actual file size are equal
ok 17 - mp_fprint depth 32 correct returned value
ok 18 - mp_fprint depth 32 correct length
ok 19 - mp_fprint depth 32 correct prefix and suffix
ok 20 - mp_fprint depth 32 correct object in the middle
# max depth - 1, top level of keys is visible
ok 21 - mp_snprint depth 31 correct returned value
ok 22 - mp_snprint depth 31 correct length
ok 23 - mp_snprint depth 31 correct prefix and suffix
ok 24 - mp_snprint depth 31 correct object in the middle
ok 25 - mp_snprint depth 31 correct with NULL buffer
ok 26 - mp_fprint depth 31 result and the actual file size are equal
ok 27 - mp_fprint depth 31 correct returned value
ok 28 - mp_fprint depth 31 correct length
ok 29 - mp_fprint depth 31 correct prefix and suffix
ok 30 - mp_fprint depth 31 correct object in the middle
# max depth - 2, top level of keys and error count are visible
ok 31 - mp_snprint depth 30 correct returned value
ok 32 - mp_snprint depth 30 correct length
ok 33 - mp_snprint depth 30 correct prefix and suffix
ok 34 - mp_snprint depth 30 correct object in the middle
ok 35 - mp_snprint depth 30 correct with NULL buffer
ok 36 - mp_fprint depth 30 result and the actual file size are equal
ok 37 - mp_fprint depth 30 correct returned value
ok 38 - mp_fprint depth 30 correct length
ok 39 - mp_fprint depth 30 correct prefix and suffix
ok 40 - mp_fprint depth 30 correct object in the middle
# max depth - 3, all except additional fields is visible
ok 41 - mp_snprint depth 29 correct returned value
ok 42 - mp_snprint depth 29 correct length
ok 43 - mp_snprint depth 29 correct prefix and suffix
ok 44 - mp_snprint depth 29 correct object in the middle
ok 45 - mp_snprint depth 29 correct with NULL buffer
ok 46 - mp_fprint depth 29 result and the actual file size are equal
ok 47 - mp_fprint depth 29 correct returned value
ok 48 - mp_fprint depth 29 correct length
ok 49 - mp_fprint depth 29 correct prefix and suffix
ok 50 - mp_fprint depth 29 correct object in the middle
# zero depth, error with unknown fields
ok 51 - mp_snprint depth 0 correct returned value
ok 52 - mp_snprint depth 0 correct length
ok 53 - mp_snprint depth 0 correct prefix and suffix
ok 54 - mp_snprint depth 0 correct object in the middle
ok 55 - mp_snprint depth 0 correct with NULL buffer
ok 56 - mp_fprint depth 0 result and the actual file size are equal
ok 57 - mp_fprint depth 0 correct returned value
ok 58 - mp_fprint depth 0 correct length
ok 59 - mp_fprint depth 0 correct prefix and suffix
ok 60 - mp_fprint depth 0 correct object in the middle
ok 6 - subtests
*** test_mp_print: done ***
*** main: done ***
|