Commit 6595cf3
fix: null source raises ArgumentNullException for insertAt, removeAt, updateAt
Previously, passing null to TaskSeq.insertAt, insertManyAt, removeAt,
removeManyAt, and updateAt would throw a NullReferenceException from deep
within the taskSeq builder, inconsistent with every other function in the
library which eagerly raises ArgumentNullException via checkNonNull.
- Add checkNonNull (nameof source) source to insertAt, removeAt, removeManyAt, updateAt
- Add checkNonNull "values" values to insertAt when called with Many (insertManyAt)
- Add null-source tests to TaskSeq.InsertAt, RemoveAt, UpdateAt test files
- 5017 tests pass (4 new null-arg tests added)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ce655c1 commit 6595cf3
File tree
5 files changed
+31
-0
lines changed- src
- FSharp.Control.TaskSeq.Test
- FSharp.Control.TaskSeq
5 files changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
19 | 31 | | |
20 | 32 | | |
21 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1369 | 1369 | | |
1370 | 1370 | | |
1371 | 1371 | | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1372 | 1378 | | |
1373 | 1379 | | |
1374 | 1380 | | |
| |||
1394 | 1400 | | |
1395 | 1401 | | |
1396 | 1402 | | |
| 1403 | + | |
1397 | 1404 | | |
1398 | 1405 | | |
1399 | 1406 | | |
| |||
1411 | 1418 | | |
1412 | 1419 | | |
1413 | 1420 | | |
| 1421 | + | |
1414 | 1422 | | |
1415 | 1423 | | |
1416 | 1424 | | |
| |||
1429 | 1437 | | |
1430 | 1438 | | |
1431 | 1439 | | |
| 1440 | + | |
1432 | 1441 | | |
1433 | 1442 | | |
1434 | 1443 | | |
| |||
0 commit comments