Commit ef3a9b3
committed
add test to assert MapIterator failure against keyless (queues) maps
This commit introduces the `TestIterateWrongMap` test, which should
assert that the `MapIterator` fails while called on keyless maps such as
queues. We do not expect different behaviours, as the `MapIterator.Next`
relies on the presence of a key for which it lookups the value.
A different method can be later introduces to also traverse a queue, but
in that case we'd need to additionally remove the value.
Signed-off-by: Simone Magnani <[email protected]>1 parent 5b04c1a commit ef3a9b3
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1128 | 1151 | | |
1129 | 1152 | | |
1130 | 1153 | | |
| |||
0 commit comments